Allowing Custom PHP and JavaScript on WordCamp.org

By far the most common request in the WordCamp.org tools survey resultsย was for the ability toย write custom PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/preface.php. and JavaScriptJavaScript JavaScript or JS is an object-oriented computer programming language commonly used to create interactive effects within web browsers. WordPress makes extensive use of JS for a better user experience. While PHP is executed on the server, JS executes within a userโ€™s browser. https://www.javascript.com/.. This is definitely understandable, because being limited to only modifying CSSCSS CSS is an acronym for cascading style sheets. This is what controls the design or look and feel of a site.ย does significantly restrictย what youย can do with yourย site.

Why not allow custom PHP and JavaScript?

The reason that this restriction exists is because thereย would beย very serious security and maintenance implications if weย were to open things up.

Security is very hard, even for experienced developers. Everybody makes a mistakeย at least occasionally, and manyย developersย donโ€™t realize how often ย they do.

Thereโ€™s no doubt that allowing unreviewed PHP or JavaScript would introduce criticalย vulnerabilities, not just to WordCamp.org, but to the rest of the WordPress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ infrastructure as well, andย even to regularย WordPress sites interacting with the infrastructure.

WordCamp.org is connected to the rest of WordPress.org in severalย key ways, and the right kind of vulnerability (or combination of vulnerabilities) could allow an attacker to do some pretty scary things, likeย silentlyย stealing password hashes or authorization cookies.ย If they targeted someone with commit access to CoreCore Core is the set of software required to run WordPress. The Core Development Team builds WordPress., WordPress.org, or a popular pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party, then the results would be severe.

Of course, we have access controls, monitoring, and other systems in place to minimize the chance of an attack andย mitigate its effectiveness, but the essential threat is there and canโ€™tย be downplayed.

ย 

Why not just review custom code before itโ€™s committed?

We just donโ€™t have the resources to review that much code. There are only two developers who handle the vast majority of the work on WordCamp.org, and both of usย also have responsibilities on other projects. So, we haveย roughlyย the equivalent of oneย full time developer. There were 80 WordCamps in 2014, andย that numberย grows every year.

Conducting aย thorough security audit and code review takes a significant amount of time, and simply isnโ€™t possible with the resources we have.

Imagine giving hundreds of developers access to one of your high profile sites, or committing to review hundreds of themes and plugins every year while still trying to build new features and iterate on existing ones.

ย 

Other potential solutions

  • Assemble a team of volunteers to review code โ€“ Because of the security concerns,ย any volunteers would need to be very experienced and a trusted member of the community, and because of the volume of sites, we would need to have a lot of them. I donโ€™t think weโ€™d be able to keep up with the demand, and weโ€™d also be taking those people away from contributing to other projects. Itโ€™d be much more efficient and make a bigger impact if those people collaborated onย projectsย that could be shared between all camps instead.
  • Let everyone host their own site โ€“ This is how things were in the early days, but we moved to a centralized platform because it was common for domain names to expire, or for the current yearโ€™s team to be unable to post an announcementย to the previous yearโ€™s site, or for sites to be unmaintained and get hacked, etc. It would also mean that organizers would have to spend extra time setting up hosting, and, because of security concerns, anything that requires connecting to WordCamp CentralWordCamp Central Website for all WordCamp activities globally. https://central.wordcamp.org includes a list of upcoming and past camp with links to each. or the WordPress.org infrastructure would become much more complicated (e.g., centralized payment requestsย andย ticket revenueย collections, single sign-on, integration with Profiles.WordPress.org, etc).
  • Create each site inside an isolated,ย virtual containerย โ€“ That would require a lot of work from the Systems team, who are also very limited on resources, and it would have the same downsides as above, where anything that connects to Central or WordPress.org would become much more complicated.
  • Only letย experienced developersย write custom codeย โ€“ The security concerns would force us to set the bar very high, and evaluating a developerโ€™s qualifications isย itself a time-consuming process,ย so this would only impact a small number of camps. It could also make it appear like certain camps wereย getting special treatment, and lead to hurt feelings when someone who feels like theyโ€™re experienced enough isnโ€™t accepted.

ย 

What makes the most impact?

WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what theyโ€™ve learned throughout the year and share the joy. Learn more. sites are tools that help organizers communicate with attendees. Itโ€™s great to have a design the community can take pride in, and working on theย site can definitely be a community-building experience, but volunteer hours are limited. Itโ€™s best to focusย on things that will inspire and connect attendees at the event, rather than makingย the website perfect.

At the end of the day, attendees will be helped the most by the sessions, workshops, networking, and contributing that goes on at the event.

The goal of WordCamp.org is to give organizing teams something that works out of the box and facilitates all of the basic conference services that most WordCamps need, so that you can spend your limitedย time on the event, rather than the website for the event.

ย 

Solutions that benefitย everyone

Allowingย organizers to write custom PHP/JavaScript isnโ€™t the real goal, itโ€™s just a means to an end; and I think there are betterย ways to get there.

For the most part, all of our camps have very similar needs, so rather than each oneย re-inventing the wheel on their own, itโ€™s much more efficient if we collaborate on solutions that work for everybody.

The survey results helped us identify the worst pain points with the current tools, and weโ€™reย planning solutions toย improve the CSSย editing experience, to give more theme/template options to choose from, and to be able to easily clone another campโ€™sย site instead of having to start from scratch. The feedback onย all of those was that theyโ€™d have a huge impact on everyoneโ€™sย ability to create the sites they want.

I think that focusing our time and energy there is going to be much better for everyone in the longย term. If youโ€™d like to help moveย those projects forward, please check out the survey recapย for next steps.

And if thereโ€™s a project that would benefit everybody, but itโ€™s not on that list, you can alwaysย work with the Community Team to build a consensus for it, and organize a group of developers from local communities toย contribute it. You donโ€™t have to be a developer yourself; many projectsย need peopleย to organize everything, createย designs, write documentation, perform user testing, etc.

#improving-wordcamp-org, #maintenance, #official-websites, #security, #wordcamp-org

Improving WordCamp.org: Notes from the 2014 Community Summit

At the 2014 Community Summitย there was a breakout discussionย that focused on ways to improve WordCamp.org.ย Youโ€™ll find the notes from that discussion below, which are being posted here so that the discussion can continue with the participation of everyone whoโ€™s interested (not just those who were able to make it to the Summit).

Kudos to @dimensionmedia for taking the notes. Itโ€™s impossible to catch everything, though, so if anyone remembers any ideas or remarksย that didnโ€™t get recorded, please post them in the comments (but please donโ€™t reveal the identityย of the person who made the remark, since the Summit was a safe space.)

* * * *

Most of the discussion centered around the desire of organizing teams to customize their site more than they currently can, or making it easier to customize.

The top 5 pain-points of people present at the discussion were:

  • CSSCSS CSS is an acronym for cascading style sheets. This is what controls the design or look and feel of a site. Editor
  • Lack of custom JS
  • Lack of accessibilityAccessibility Accessibility (commonly shortened to a11y) refers to the design of products, devices, services, or environments for people with disabilities. The concept of accessible design ensures both โ€œdirect accessโ€ (i.e. unassisted) and โ€œindirect accessโ€ meaning compatibility with a personโ€™s assistive technology (for example, computer screen readers). (https://en.wikipedia.org/wiki/Accessibility)
  • Theme Repo Is too small
  • Possibility of crafting default theme

Customization of WordCampWordCamp WordCamps are casual, locally-organized conferences covering everything related to WordPress. They're one of the places where the WordPress community comes together to teach one another what theyโ€™ve learned throughout the year and share the joy. Learn more. themes

This was more of a passionate subject than you would think. First we discussed best ways to share code with other WordCamp sites that already have great designs, because not every camp has access to a designer. Since WordCamp sites only allow CSS as custom code, right now itโ€™s a copy/paste process.

We talked about two main areas of customization: design and functionality.

Design wise, we talked about how extendable current themes are and maybe arenโ€™t. We talked about the hacking that needs to be done in certain situations. And we talked about having a potential gallery of WordCamp sites that organizers can choose from โ€“ greater availability of choices than what we currently have. Offering themes that have already been audited by WordPress.comWordPress.com An online implementation of WordPress code that lets you immediately access a new WordPress environment to publish your content. WordPress.com is a private company owned by Automattic that hosts the largest multisite in the world. This is arguably the best place to start blogging if you have never touched WordPress before. https://wordpress.com/ (but are also available in the WordPress.orgWordPress.org The community site where WordPress code is created and shared by the users. This is where you can download the source code for WordPress core, plugins and themes as well as the central location for community conversations and organization. https://wordpress.org/ repository) might be an easy way to add more choice.

We also talked about maybe making certain large sections of a theme as a widgetWidget A WordPress Widget is a small block that performs a specific function. You can add these widgets in sidebars also known as widget-ready areas on your web page. WordPress widgets were originally created to provide a simple and easy-to-use way of giving design and structure control of the WordPress theme to the user. to begin to allow custom HTMLHTML HTML is an acronym for Hyper Text Markup Language. It is a markup language that is used in the development of web pages and websites. in addition to the custom CSS. Or possibly creating more page templates that meet common needs.

Functionality wise, we came up with some potential interesting ideas for WordCamp sites. We talked about how some customizations have come about and been implemented. And also possibility of allowing WordCamps to experiment with a concept or idea, and then bring it to the attention of the WordCamp development team, which is by the way run only by two people and they deserve a ton of praise for that. Some of the more simple ideas, like commenting for asking questions.

So our takeaway was understanding current limitations, primarily for security. But also allowing flexibility for great designs and concepts for future WordCamps.

Why we disallow custom PHPPHP PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML. https://www.php.net/manual/en/preface.php. code: every single pluginPlugin A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress. These can be free in the WordPress.org Plugin Directory https://wordpress.org/plugins/ or can be cost-based plugin from a third-party would have to be maintained forever and also looked over to make sure the code is secure. If there was a security vulnerability on WordCamp.org, then that would put WordPress.org in a position to be hacked, since theyโ€™re connected. We also try to create solutions that work for all WordCamps, rather than just a single camp doing something on their own. Contributions can be made to the Meta trac and integrated for all WordCamps to use.

Miscellaneous

  • We also discussed perhaps converting each site to static HTML after the camp is over, which would allow us to remove the burden of constantly maintaining plugins. Maybe use commenting for archives.
  • MailPoet has the ability to integrate with WordPress, providing basic functionality that could be useful for other WordCamps. CampTix has some MailChimp integration; it collects stats, and delivers information back to WordCamp.org. We want to own that data, not a third-party.
  • Sessions might be extended be custom post types.

So say we all.

* * * *

After the Summit,ย @ryelle built a prototype for a way to easily clone another WordCampโ€™sย CSS and other visual elements, to help organizing teams get a quick start on their own site. Kelly, could you please post that code to MetaMeta Meta is a term that refers to the inside workings of a group. For us, this is the team that works on internal WordPress sites like WordCamp Central and Make WordPress. TracTrac Trac is the place where contributors create issues for bugs or feature requests much like GitHub.https://core.trac.wordpress.org/., so that everyone can check it out and collaborate on it? A couple screenshots in the comments would be awesome too, for those who arenโ€™t developers.

Iโ€™ve also spent some time thinking about how we could improve the CSS-editing experience, but thatโ€™s a big enough topic that it warrants a separate discussion, so Iโ€™ve started another post for that.

If you have any thoughts on anything mentioned above, or have an idea to improve WordCamp.org that hasnโ€™t been mentioned yet, please post it in the comments ๐Ÿ™‚

ย 

Everyone is encouragedย to particpate in the discussion, but Iโ€™mย pinging the people who took part in the original discussion to make sure they donโ€™t miss the post:ย @ryelle, @harbormark, @chanthaboune, @nvwd, @kovshenin, @rafaehlers, @davidjlaietta, @dimensionmedia, @mj12982, @iandstewart, @miss_jwo, @topher1kenobe

#accessibility, #customization, #improving-wordcamp-org, #jetpack-css-editor, #maintenace, #official-websites, #security, #themes, #wordcamp-org