79% publishpress-checklists

Code Review | PublishPress Checklists: Pre-Publishing Approval Task Checklist for WordPress Content

WordPress plugin PublishPress Checklists: Pre-Publishing Approval Task Checklist for WordPress Content scored79%from 54 tests.

About plugin

  • Plugin page: publishpress-chec...
  • Plugin version: 2.9.1
  • PHP compatiblity: 7.2.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3
  • WordPress version: 6.3.1
  • First release: Dec 3, 2019
  • Latest release: Nov 30, 2023
  • Number of updates: 75
  • Update frequency: every 19.6 days
  • Top authors: publishpress (58.67%)stevejburge (18.67%)andergmartins (14.67%)olatechpro (6.67%)ojopaul (6.67%)

Code review

54 tests

User reviews

21 reviews

Install metrics

4,000+ active /72,317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲1.11MB] [CPU: ▲1.77ms] Passed 4 tests

Analyzing server-side resources used by PublishPress Checklists: Pre-Publishing Approval Task Checklist for WordPress Content
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4439.76 ▲0.28
Dashboard /wp-admin4.62 ▲1.3254.70 ▲0.14
Posts /wp-admin/edit.php4.73 ▲1.3855.65 ▲1.70
Add New Post /wp-admin/post-new.php7.24 ▲1.3589.26 ▲4.96
Media Library /wp-admin/upload.php4.54 ▲1.3143.38 ▲7.62

Server storage [IO: ▲1.48MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 223 new files
Database: no new tables, 16 new options
New WordPress options
can_compress_scripts
db_upgraded
publishpress_checklists_yoastseo_options
publishpress_checklists_permalinks_options
publishpress_checklists_reviews_options
publishpress_checklists_version
publishpress_checklists_options_migrated_2_6_0
theysaidso_admin_options
publishpress-checklists_wp_reviews_installed_on
publishpress_checklists_settings_options
...

Browser metrics Passed 4 tests

Checking browser requirements for PublishPress Checklists: Pre-Publishing Approval Task Checklist for WordPress Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6714.19 ▼0.521.73 ▼0.0527.60 ▼16.53
Dashboard /wp-admin2,237 ▲575.64 ▲0.0694.91 ▼3.4944.31 ▼1.15
Posts /wp-admin/edit.php2,147 ▲472.03 ▲0.0239.44 ▼1.5134.91 ▼9.10
Add New Post /wp-admin/post-new.php6,314 ▲4,77920.93 ▼4.21850.24 ▲162.9783.85 ▲23.86
Media Library /wp-admin/upload.php1,439 ▲454.20 ▲0.0497.09 ▲1.3944.32 ▲1.21

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 16 options
    • publishpress_checklists_permissions_options
    • publishpress_checklists_checklists_options
    • publishpress_checklists_options_migrated_2_6_0
    • theysaidso_admin_options
    • widget_recent-comments
    • publishpress-checklists_wp_reviews_installed_on
    • publishpress_checklists_options_migrated_2_0_0
    • widget_recent-posts
    • publishpress_checklists_yoastseo_options
    • db_upgraded
    • ...

Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 26× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Approved_by.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/External_links.php
    • > /wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Base_dropdown.php
    • > /wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php
    • > /wp-content/plugins/publishpress-checklists/core/Services.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Tags_count.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Interface_parametrized.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Featured_image.php
    • > /wp-content/plugins/publishpress-checklists/core/Requirement/Validate_links.php
  • 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Undefined variable: context in wp-content/plugins/publishpress-checklists/modules/settings/templates/settings.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/redirect-page.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/publishpress-checklists/modules/settings/templates/settings.php on line 4
    • > PHP Notice
      Undefined variable: context in wp-content/plugins/publishpress-checklists/modules/settings/templates/module.php on line 6
    • > PHP Notice
      Undefined variable: context in wp-content/plugins/publishpress-checklists/modules/settings/templates/settings.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'PublishPress\\Checklists\\Core\\Legacy\\Module' not found in wp-content/plugins/publishpress-checklists/modules/permalinks/permalinks.php:22
    • > PHP Warning
      Class 'PublishPress\\WordpressVersionNotices\\Template\\TemplateInvalidArgumentsException' not found in wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/wordpress-version-notices/src/deprecated.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'PublishPress\\Checklists\\Core\\Requirement\\Base_dropdown' not found in wp-content/plugins/publishpress-checklists/modules/yoastseo/lib/Requirement/Seo_Analysis.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'PublishPress\\Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/pimple-pimple/lib/pimple/pimple/src/Pimple/Exception/UnknownIdentifierException.php:39
    • > PHP Warning
      Class 'PublishPress\\WordpressVersionNotices\\Autoloader' not found in wp-content/plugins/publishpress-checklists/lib/vendor/publishpress/wordpress-version-notices/src/deprecated.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: approval, checklist, requirement, minimum, maximum

publishpress-checklists/publishpress-checklists.php Passed 13 tests

Analyzing the main PHP file in "PublishPress Checklists: Pre-Publishing Approval Task Checklist for WordPress Content" version 2.9.1
39 characters long description:
Add support for checklists in WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected21,963 lines of code in 196 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript723,1031,60711,432
PHP1051,7833,7856,760
PO File68109391,899
CSS8276521,325
JSON200395
JSX115080
SVG10063
HTML1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.96
▷ Minimum class complexity1.00
▷ Maximum class complexity105.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces21
Interfaces8
Traits0
Classes70
▷ Abstract classes22.86%
▷ Concrete classes6897.14%
▷ Final classes22.94%
Methods434
▷ Static methods6314.52%
▷ Public methods36784.56%
▷ Protected methods173.92%
▷ Private methods5011.52%
Functions36
▷ Named functions925.00%
▷ Anonymous functions2775.00%
Constants53
▷ Global constants1935.85%
▷ Class constants3464.15%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/publishpress-checklists-logo.png6.49KB6.72KB0.00%
modules/settings/lib/new-menu-icon.png3.65KB1.91KB▼ 47.76%
modules/checklists/assets/img/publishpress-logo.png8.69KB8.91KB0.00%
modules/checklists/assets/img/publishpress-checklists-logo.png13.88KB14.62KB0.00%
modules/checklists/assets/img/publishpress-logo-icon.png13.05KB4.10KB▼ 68.61%