Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.01ms] Passed 4 tests
Analyzing server-side resources used by Publish approval
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.12 ▲1.28 |
Dashboard /wp-admin | 3.53 ▲0.23 | 51.33 ▼4.29 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 53.12 ▲7.27 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 96.48 ▼2.97 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 41.34 ▲1.93 |
Publish approval /wp-admin/options-general.php?page=publish-approval | 3.38 | 35.53 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Publish approval
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲61 | 14.27 ▼0.45 | 1.93 ▲0.37 | 41.67 ▲1.34 |
Dashboard /wp-admin | 2,203 ▲29 | 5.62 ▲0.02 | 89.72 ▼10.52 | 36.73 ▼11.52 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.03 | 39.00 ▲3.25 | 35.88 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 23.31 ▲4.96 | 624.87 ▼27.29 | 63.34 ▼8.20 |
Media Library /wp-admin/upload.php | 1,411 ▲8 | 4.20 ▼0.03 | 100.82 ▲0.06 | 43.90 ▲0.42 |
Publish approval /wp-admin/options-general.php?page=publish-approval | 1,036 | 2.06 | 23.39 | 32.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function EC_PublishApproval\\add_action() in wp-content/plugins/publish-approval/ECPlugin.php:119
- > PHP Fatal error
Uncaught Error: Class 'EC_PublishApproval\\ApprovalTools' not found in wp-content/plugins/publish-approval/templates/admin-view.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: Please add an image for screenshot #5 (Publish widget with post ready to be published or unapproved)
- Screenshots: Please a description for screenshot #3 in publish-approval/assets to your readme.txt
- Contributors: Plugin contributors field is missing
publish-approval/index.php 92% from 13 tests
The primary PHP file in "Publish approval" version 1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("publish-approval.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,004 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 197 | 47 | 871 |
PO File | 1 | 22 | 28 | 66 |
JavaScript | 1 | 7 | 0 | 35 |
CSS | 1 | 7 | 0 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 66 | 94.29% |
▷ Public methods | 56 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 20.00% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin