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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.32 ▼5.29 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.30 ▼12.59 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.55 ▲2.70 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.54 ▼16.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.13 ▼0.44 | 1.92 ▲0.23 | 41.53 ▼2.24 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.02 | 92.41 ▼0.47 | 43.87 ▼0.09 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.03 | 34.71 ▼4.12 | 34.00 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.03 ▼0.40 | 650.02 ▼36.01 | 50.81 ▲2.21 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.14 ▼0.03 | 106.41 ▲4.90 | 47.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 72 | 207 |
JavaScript | 2 | 19 | 34 | 57 |
Markdown | 1 | 20 | 0 | 41 |
Sass | 1 | 0 | 0 | 35 |
CSS | 1 | 1 | 0 | 25 |
JSON | 1 | 0 | 0 | 18 |
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 code | 0.40 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 48.91KB | 28.09KB | ▼ 42.57% |
screenshot-1.png | 15.96KB | 9.83KB | ▼ 38.40% |