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.01MB] [CPU: ▼6.72ms] Passed 4 tests
A check of server-side resources used by WP Unpublish
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.28 ▼1.57 |
Dashboard /wp-admin | 3.33 ▼0.02 | 47.53 ▼17.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 54.67 ▲2.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 96.20 ▼10.17 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.49 ▲2.33 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
WP Unpublish: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.24 ▲0.12 | 1.72 ▲0.05 | 39.97 ▼4.49 |
Dashboard /wp-admin | 2,198 ▲30 | 5.62 ▲0.10 | 89.42 ▲1.54 | 40.47 ▼6.87 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.01 ▼0.01 | 36.77 ▼4.58 | 30.99 ▼7.75 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.23 ▼0.01 | 647.28 ▼50.27 | 51.06 ▼9.09 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.22 ▲0.03 | 99.14 ▼11.48 | 47.33 ▼0.24 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in wp-unpublish/assets to your readme.txt
wp-unpublish/wp-unpublish.php Passed 13 tests
The entry point to "WP Unpublish" version 1.1.1 is a PHP file that has certain tags in its header comment area
50 characters long description:
Adds the post status Unpublished (Classic Editor).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected192 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 31 | 20 | 86 |
JavaScript | 2 | 14 | 1 | 37 |
PO File | 1 | 9 | 9 | 36 |
Markdown | 1 | 12 | 0 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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 are no PNG files in this plugin