Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.47ms] 75% from 4 tests
Analyzing server-side resources used by Worthless Plugin
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,731.69ms on /wp-admin/options-general.php?page=worthless-plugin)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 37.87 ▼11.05 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.16 ▼2.27 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.36 ▼2.47 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.25 ▼2.08 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 31.78 ▼1.38 |
Worthless Plugin /wp-admin/options-general.php?page=worthless-plugin | 4.51 | 1,731.69 |
Server storage [IO: ▲0.07MB] [DB: ▲0.10MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Worthless Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.24 ▼0.04 | 1.62 ▼0.16 | 39.54 ▼5.00 |
Dashboard /wp-admin | 2,201 ▲27 | 5.62 ▲0.10 | 91.95 ▼9.38 | 41.48 ▼2.08 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.96 ▲0.01 | 38.88 ▲0.42 | 35.52 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 25.44 ▲2.41 | 603.14 ▼20.45 | 74.54 ▲19.99 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.19 ▼0.04 | 98.58 ▲1.42 | 41.64 ▲1.13 |
Worthless Plugin /wp-admin/options-general.php?page=worthless-plugin | 996 | 1.99 | 36.78 | 51.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.10MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: dashboard, adrotate, notification, fun, admin...
worthless-plugin/worthless-plugin.php 92% from 13 tests
The primary PHP file in "Worthless Plugin" version 3.4.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin218 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 39 | 183 |
CSS | 1 | 7 | 3 | 35 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
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 | 6 | |
▷ Named functions | 6 | 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
No PNG images were found in this plugin