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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.04ms] Passed 4 tests
Analyzing server-side resources used by Pre-Publish Checklist
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.07 ▼7.88 |
Dashboard /wp-admin | 3.45 ▲0.14 | 45.07 ▼0.49 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 46.16 ▼3.60 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.11 ▼4.17 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 33.65 ▲0.21 |
Pre-Publish Checklist /wp-admin/options-general.php?page=ppc | 3.39 | 30.96 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 9 new options
New WordPress options |
---|
can_compress_scripts |
_ppc_db_version |
theysaidso_admin_options |
ppc_cpt_checklist_data |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
ppc_post_types_to_display |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Pre-Publish Checklist
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.33 ▼0.02 | 2.15 ▲0.26 | 43.86 ▼9.12 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.09 | 92.39 ▲6.28 | 40.59 ▲2.32 |
Posts /wp-admin/edit.php | 2,210 ▲107 | 2.16 ▲0.13 | 42.52 ▲5.23 | 35.38 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6,346 ▲4,820 | 26.30 ▲2.77 | 889.46 ▲262.70 | 53.74 ▲2.30 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▼0.00 | 96.43 ▲0.78 | 40.97 ▲1.00 |
Pre-Publish Checklist /wp-admin/options-general.php?page=ppc | 895 | 2.03 | 21.26 | 26.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- _ppc_db_version
- ppc_cpt_checklist_data
- ppc_post_types_to_display
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pre-publish-checklist/pre-publish-checklist.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pre-publish-checklist/classes/class-ppc-pagesetups.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pre-publish-checklist/classes/class-ppc-loader.php:49
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in pre-publish-checklist/assets to your readme.txt
pre-publish-checklist/pre-publish-checklist.php 85% from 13 tests
The entry point to "Pre-Publish Checklist" version 1.1.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,724 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 91 | 347 | 798 |
CSS | 1 | 82 | 0 | 477 |
JavaScript | 2 | 20 | 10 | 413 |
XML | 1 | 2 | 13 | 36 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 32 | 94.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.88% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin