Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/publish-control/publish-control.php+21
Undefined variable: defaultTypes
Server metrics [RAM: ▲0.03MB] [CPU: ▼144.70ms] Passed 4 tests
A check of server-side resources used by Publish Control
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 33.01 ▲10.90 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.84 ▲0.31 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 44.84 ▼0.92 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 93.88 ▼573.05 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 30.10 ▼5.12 |
Publish Control /wp-admin/options-general.php?page=publish-control | 3.00 | 26.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 2 new options
New WordPress options |
---|
pubcontrol_message |
pubcontrol_posttypes |
Browser metrics Passed 4 tests
A check of browser resources used by Publish Control
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,869 ▲273 | 15.95 ▲0.38 | 7.84 ▼1.34 | 42.68 ▼2.84 |
Dashboard /wp-admin | 3,160 ▲229 | 5.93 ▼0.02 | 133.37 ▼6.19 | 108.33 ▼4.86 |
Posts /wp-admin/edit.php | 2,886 ▲147 | 2.70 ▲0.00 | 62.53 ▼3.99 | 89.88 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,512 ▼94 | 18.46 ▼0.38 | 344.66 ▼16.62 | 120.00 ▲13.76 |
Media Library /wp-admin/upload.php | 2,026 ▲219 | 5.02 ▲0.01 | 162.73 ▲15.33 | 121.28 ▼3.30 |
Publish Control /wp-admin/options-general.php?page=publish-control | 1,258 | 2.21 | 56.27 | 78.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/publish-control/publish-control-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/publish-control/publish-control.php:153
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: post, control, publish, workflow, confirm...
publish-control/publish-control.php Passed 13 tests
The main file in "Publish Control" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Provides a confirmation dialog upon content publishing.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected146 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 14 | 50 | 143 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin