Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.55ms] Passed 4 tests
This is a short check of server-side resources used by DashPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.11 ▲0.25 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.78 ▼1.86 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.91 ▼2.97 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 106.19 ▲14.39 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.83 ▼1.61 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by DashPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,776 ▲1,041 | 13.62 ▼0.81 | 1.74 ▼0.16 | 41.13 ▼6.34 |
Dashboard /wp-admin | 3,185 ▲997 | 5.19 ▼0.72 | 111.85 ▼3.31 | 86.98 ▲41.97 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.05 | 41.07 ▲2.36 | 35.82 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▲8 | 23.17 ▲0.12 | 665.08 ▲5.95 | 57.08 ▲1.33 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.20 ▼0.10 | 97.47 ▼4.32 | 41.32 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
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
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/dashpress/dashpress.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/dashpress/dbp-admin/includes/admin_footer.php:2
- > PHP Warning
Use of undefined constant PLUGINDIR - assumed 'PLUGINDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dashpress/dashpress.php on line 20
- > PHP Fatal error
Uncaught Error: Class 'SimplePie_Cache' not found in wp-content/plugins/dashpress/dbp-admin/class/DBP_SimplePie_Cache.class.php:2
- > PHP Fatal error
Uncaught Error: Class 'SimplePie_Item' not found in wp-content/plugins/dashpress/dbp-admin/class/DBP_SimplePie_Item.class.php:3
- > PHP Fatal error
Uncaught Error: Interface 'SimplePie_Cache_Base' not found in wp-content/plugins/dashpress/dbp-admin/class/DBP_SimplePie_Cache_transient.class.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- Contributors: The plugin contributors field is not present
dashpress/dashpress.php Passed 13 tests
The principal PHP file in "DashPress" v. 5.0 is loaded by WordPress automatically on each request
40 characters long description:
The ultimate Dashboard management plugin
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
Good job! No executable or dangerous file extensions detected1,003 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 114 | 39 | 595 |
JavaScript | 1 | 57 | 7 | 203 |
CSS | 2 | 31 | 7 | 115 |
PO File | 1 | 38 | 55 | 90 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 43 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dbp-admin/images/PP_M.png | 2.57KB | 1.84KB | ▼ 28.20% |