Benchmarks
Plugin footprint 65% 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: ▼1.17ms] Passed 4 tests
Analyzing server-side resources used by Pre-Publish Post Checklist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 37.05 ▼4.47 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.11 ▼3.38 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.30 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.16 ▲2.73 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.41 ▲0.81 |
Pre-Publish Post Checklist /wp-admin/options-general.php?page=manage_publish_checklist | 3.24 | 30.76 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 52 new files
Database: 2 new tables, 7 new options
New tables |
---|
pc_list_item_instance |
pc_list_item |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
pc_on_publish |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Pre-Publish Post Checklist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.31 ▼1.12 | 1.92 ▼1.01 | 39.84 ▼9.05 |
Dashboard /wp-admin | 2,213 ▲25 | 4.85 ▼0.06 | 108.68 ▼7.46 | 38.81 ▼5.71 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.06 | 40.30 ▼0.18 | 35.39 ▲0.75 |
Add New Post /wp-admin/post-new.php | 10,895 ▲9,362 | 20.44 ▼2.91 | 1,011.73 ▲383.94 | 37.24 ▼18.73 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.26 ▲0.08 | 96.59 ▼2.55 | 41.73 ▼1.63 |
Pre-Publish Post Checklist /wp-admin/options-general.php?page=manage_publish_checklist | 1,000 | 2.52 | 52.20 | 30.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- pc_list_item_instance
- pc_list_item
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pre-publish-post-checklist/inc/views/manage.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pre-publish-post-checklist/inc/ajax.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pre-publish-post-checklist/inc/ajax.php:44
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pre-publish-post-checklist/index.php on line 13
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pre-publish-post-checklist/index.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pre-publish-post-checklist/inc/page-setups.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pre-publish-post-checklist/inc/plugin-actions.php:3
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: on publish, pre-publish checklist, confirm publish, checklist, prevent publish...
pre-publish-post-checklist/index.php 92% from 13 tests
The principal PHP file in "Pre-Publish Post Checklist" v. 3.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("pre-publish-post-checklist.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,835 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 1,481 | 1,943 | 7,035 |
Sass | 7 | 163 | 69 | 855 |
CSS | 1 | 87 | 36 | 514 |
PHP | 7 | 110 | 144 | 341 |
Handlebars | 11 | 7 | 45 | 90 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 2 | 15.38% |
▷ Private methods | 1 | 7.69% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin