Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼1.95ms] Passed 4 tests
Server-side resources used by Easy Digital Downloads Toolbar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 48.60 ▲7.83 |
Dashboard /wp-admin | 3.58 ▲0.23 | 52.97 ▼14.48 |
Posts /wp-admin/edit.php | 3.70 ▲0.33 | 56.94 ▲6.12 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 101.18 ▼5.94 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 44.89 ▲6.50 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Digital Downloads Toolbar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,230 ▲469 | 14.38 ▲0.19 | 3.26 ▲1.52 | 44.13 ▼0.59 |
Dashboard /wp-admin | 2,403 ▲226 | 5.69 ▲0.02 | 91.80 ▼7.89 | 40.53 ▼7.31 |
Posts /wp-admin/edit.php | 2,311 ▲211 | 2.03 ▲0.05 | 38.09 ▼1.34 | 33.80 ▼5.66 |
Add New Post /wp-admin/post-new.php | 1,735 ▲209 | 23.11 ▼0.07 | 620.32 ▼75.07 | 50.20 ▼7.09 |
Media Library /wp-admin/upload.php | 1,608 ▲211 | 4.19 ▼0.08 | 107.35 ▼2.25 | 44.29 ▼3.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/edd-toolbar/includes/eddtb-resources.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/edd-toolbar/edd-toolbar.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/edd-toolbar/includes/eddtb-admin.php:28
- > PHP Notice
Undefined variable: eddgroup in wp-content/plugins/edd-toolbar/includes/eddtb-resources.php on line 23
- > PHP Fatal error
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)
There were no browser issues 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
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
edd-toolbar/edd-toolbar.php Passed 13 tests
The principal PHP file in "Easy Digital Downloads Toolbar" v. 1.5.1 is loaded by WordPress automatically on each request
125 characters long description:
This plugin adds useful admin links and resources for the Easy Digital Downloads plugin to the WordPress Toolbar / Admin Bar.
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
Everything looks great! No dangerous files found in this plugin2,193 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 390 | 677 | 1,131 |
PO File | 3 | 470 | 832 | 1,062 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
23 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-eddtb-brown.png | 0.88KB | 0.75KB | ▼ 15.13% |
images/icon-eddtb2-blue.png | 0.95KB | 0.88KB | ▼ 7.38% |
images/icon-eddtb2-red.png | 0.70KB | 0.88KB | 0.00% |
images/icon-eddtb2-green.png | 0.70KB | 0.88KB | 0.00% |
images/icon-eddtb-red.png | 0.59KB | 0.72KB | 0.00% |