84% publishing-checklist

Code Review | Publishing Checklist

WordPress plugin Publishing Checklist scored84%from 54 tests.

About plugin

  • Plugin page: publishing-checklist
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.3
  • WordPress version: 6.3.1
  • First release: Jun 26, 2015
  • Latest release: Aug 27, 2015
  • Number of updates: 5
  • Update frequency: every 15.6 days
  • Top authors: danielbachhuber (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /3,144 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.15ms] Passed 4 tests

Server-side resources used by Publishing Checklist
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.32 ▼5.29
Dashboard /wp-admin3.33 ▼0.0148.30 ▼12.59
Posts /wp-admin/edit.php3.38 ▲0.0351.55 ▲2.70
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.54 ▼16.24
Media Library /wp-admin/upload.php3.26 ▲0.0337.24 ▼2.48

Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Publishing Checklist
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.13 ▼0.441.92 ▲0.2341.53 ▼2.24
Dashboard /wp-admin2,195 ▲185.63 ▼0.0292.41 ▼0.4743.87 ▼0.09
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0334.71 ▼4.1234.00 ▼0.12
Add New Post /wp-admin/post-new.php1,538 ▲1223.03 ▼0.40650.02 ▼36.0150.81 ▲2.21
Media Library /wp-admin/upload.php1,403 ▲64.14 ▼0.03106.41 ▲4.9047.31 ▲1.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/publishing-checklist/templates/post-submitbox-misc-actions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/publishing-checklist/publishing-checklist.php:206
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/publishing-checklist/templates/column-checklist.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/publishing-checklist/inc/class-cli-command.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Checklist summaries will be displayed within a column on the Manage post screen.), #2 (Checklists will also be displayed within the Publish metabox on the Edit screen.)
The official readme.txt is a good inspiration

publishing-checklist/publishing-checklist.php Passed 13 tests

The primary PHP file in "Publishing Checklist" version 0.1.0 is used by WordPress to initiate all plugin functionality
22 characters long description:
Pre-flight your posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin383 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP44672207
JavaScript2193457
Markdown120041
Sass10035
CSS11025
JSON10018

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity14.50
▷ Minimum class complexity8.00
▷ Maximum class complexity21.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png48.91KB28.09KB▼ 42.57%
screenshot-1.png15.96KB9.83KB▼ 38.40%