72% publishpress

Code Review | PublishPress Planner: Organize and Schedule Your WordPress Content

WordPress plugin PublishPress Planner: Organize and Schedule Your WordPress Content scored72%from 54 tests.

About plugin

  • Plugin page: publishpress
  • Plugin version: 3.12.2
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 20, 2017
  • Latest release: Sep 28, 2023
  • Number of updates: 289
  • Update frequency: every 8.5 days
  • Top authors: pressshack (47.75%)publishpress (20.76%)andergmartins (20.07%)olatechpro (4.84%)stevejburge (4.5%)

Code review

54 tests

User reviews

159 reviews

Install metrics

7,000+ active /286,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲4.36MB] [CPU: ▲30.31ms] Passed 4 tests

Server-side resources used by PublishPress Planner: Organize and Schedule Your WordPress Content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.62 ▲4.1674.42 ▲36.45
Dashboard /wp-admin7.72 ▲4.4281.81 ▲26.08
Posts /wp-admin/edit.php7.78 ▲4.4396.49 ▲37.54
Add New Post /wp-admin/post-new.php10.46 ▲4.57137.30 ▲21.18
Media Library /wp-admin/upload.php7.66 ▲4.4479.11 ▲41.09
PublishPress /wp-admin/admin.php?page=pp-efmigration7.6376.30
Upgrade to Pro /wp-admin/admin.php?page=pp-modules-settings-menu-upgrade-link7.3661.21
Settings /wp-admin/admin.php?page=pp-modules-settings7.6868.03
Editorial Comments /wp-admin/admin.php?page=pp-editorial-comments7.7470.82

Server storage [IO: ▲8.59MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 634 new files
Database: no new tables, 23 new options
New WordPress options
widget_theysaidso_widget
publishpress_reviews_options
publishpress_notifications_log_options
publishpress_efmigration_options
publishpress_calendar_options
publishpress_theeventscalendar_integration_options
publishpress_editorial_metadata_options
publishpress_custom_status_options
widget_recent-comments
publishpress_modules_settings_options
...

Browser metrics Passed 4 tests

An overview of browser requirements for PublishPress Planner: Organize and Schedule Your WordPress Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13414.78 ▲0.531.87 ▼0.5136.14 ▼14.51
Dashboard /wp-admin2,288 ▲1004.91 ▼0.95115.81 ▲2.4049.45 ▲0.46
Posts /wp-admin/edit.php2,296 ▲2012.38 ▲0.3954.79 ▼0.4240.14 ▲1.88
Add New Post /wp-admin/post-new.php6,457 ▲4,94322.55 ▲5.031,017.49 ▲248.7343.76 ▼12.98
Media Library /wp-admin/upload.php1,467 ▲794.34 ▲0.12119.84 ▲6.0855.00 ▲2.14
PublishPress /wp-admin/admin.php?page=pp-efmigration9461.7228.9636.93
Upgrade to Pro /wp-admin/admin.php?page=pp-modules-settings-menu-upgrade-link280.440.094.47
Settings /wp-admin/admin.php?page=pp-modules-settings1,2762.6840.7147.45
Editorial Comments /wp-admin/admin.php?page=pp-editorial-comments1,4742.5344.5647.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 23 options
    • publishpress_notifications_options
    • publishpress_theeventscalendar_integration_options
    • publishpress_settings_options
    • widget_recent-posts
    • publishpress_modules_settings_options
    • publishpress_notifications_log_options
    • publishpress_efmigration_options
    • publishpress_reviews_options
    • publishpress_improved_notifications_options
    • publishpress_version
    • ...

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 19× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-checkbox-handler.php
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-user-handler.php
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-select-handler.php
    • > /wp-content/plugins/publishpress/lib/Legacy/Auto_loader.php
    • > /wp-content/plugins/publishpress/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
    • > /wp-content/plugins/publishpress/lib/Notifications/Plugin.php
    • > /wp-content/plugins/publishpress/views/workflow_metabox.html.php
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-handler-interface.php
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-number-handler.php
    • > /wp-content/plugins/publishpress/modules/editorial-metadata/input-handlers/editorial-metadata-input-paragraph-handler.php
  • 166× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/publishpress/modules/settings/views/settings.html.php on line 5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/publishpress/modules/notifications-log/library/NotificationsLogTable.php on line 30
    • > PHP Fatal error
      Trait 'PublishPress\otifications\\Traits\\Dependency_Injector' not found in wp-content/plugins/publishpress/lib/Notifications/Shortcodes.php on line 17
    • > PHP Fatal error
      Uncaught Error: Class 'Sabre\\VObject\\Parser\\Parser' not found in wp-content/plugins/publishpress/lib/vendor/sabre/vobject/lib/Parser/MimeDir.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Sabre\\VObject\\Property' not found in wp-content/plugins/publishpress/lib/vendor/sabre/vobject/lib/Property/ICalendar/Duration.php:21
    • > PHP Fatal error
      Uncaught Error: Interface 'Sabre\\VObject\\Splitter\\SplitterInterface' not found in wp-content/plugins/publishpress/lib/vendor/sabre/vobject/lib/Splitter/ICalendar.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'PublishPress\\Pimple\\Container' not found in wp-content/plugins/publishpress/lib/Notifications/Pimple_Container.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'PublishPress\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/publishpress/lib/vendor/publishpress/pimple-pimple/lib/pimple/pimple/src/Pimple/Exception/FrozenServiceException.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'PP_Module' not found in wp-content/plugins/publishpress/modules/calendar/calendar.php:41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/publishpress/views/workflow_receiver_checkbox_field.html.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=pp-modules-settings-menu-upgrade-link
    • > Network (severe)
    wp-admin/admin.php?page=pp-modules-settings-menu-upgrade-link - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: notifications, custom statuses, workflow, editorial comments, editorial calendar

publishpress/publishpress.php 92% from 13 tests

The entry point to "PublishPress Planner: Organize and Schedule Your WordPress Content" version 3.12.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin128,975 lines of code in 552 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1779,9575,13760,291
PHP2447,53515,21931,962
PO File106,4239,04715,694
HTML105778618,527
CSS421,0852805,220
CoffeeScript189816042,976
JSX29472712,281
LESS61103553
JSON500546
Markdown31720471
Sass2490252
Stylus123698
SVG21065
make17020
YAML24019

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity22.86
▷ Minimum class complexity1.00
▷ Maximum class complexity418.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces46
Interfaces16
Traits3
Classes176
▷ Abstract classes95.11%
▷ Concrete classes16794.89%
▷ Final classes21.20%
Methods1,468
▷ Static methods1238.38%
▷ Public methods1,15878.88%
▷ Protected methods17011.58%
▷ Private methods1409.54%
Functions62
▷ Named functions1625.81%
▷ Anonymous functions4674.19%
Constants190
▷ Global constants3417.89%
▷ Class constants15682.11%
▷ Public constants156100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.19MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/improved-notifications/assets/img/multiple-select.png3.30KB0.62KB▼ 81.18%
common/img/ef-settings-widget.png0.70KB0.63KB▼ 9.79%
common/img/ef-settings-budget.png0.81KB0.77KB▼ 5.54%
modules/improved-notifications/assets/img/icon-mute.png0.50KB0.36KB▼ 28.35%
common/img/ef-settings-notifications.png0.46KB0.39KB▼ 14.81%