Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.59ms] Passed 4 tests
A check of server-side resources used by EDD Mobile
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.95 ▲1.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 52.46 ▲7.79 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.64 ▼0.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.77 ▼6.99 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.36 ▲3.57 |
EDD Mobile /wp-admin/options-general.php?page=edd-mobile-settings | 3.21 | 30.73 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for EDD Mobile
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲92 | 14.75 ▼0.02 | 1.95 ▲0.10 | 43.97 ▼4.22 |
Dashboard /wp-admin | 2,219 ▲31 | 4.83 ▼1.07 | 101.31 ▼1.12 | 37.55 ▼7.64 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▲0.04 | 39.05 ▲2.86 | 36.44 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.30 ▲0.01 | 666.16 ▲2.48 | 55.73 ▼9.87 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.24 ▲0.01 | 106.03 ▲5.90 | 46.35 ▲2.45 |
EDD Mobile /wp-admin/options-general.php?page=edd-mobile-settings | 948 | 2.39 | 40.12 | 26.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-mobile/includes/edd-mobile-admin.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/edd-mobile/loader.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/edd-mobile/themes/index.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-mobile/includes/edd-mobile-functions.php:4
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: edd, mobile, easy digital downloads
edd-mobile/loader.php 92% from 13 tests
"EDD Mobile" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("edd-mobile.php" instead of "loader.php")
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 detected2,519 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 350 | 68 | 1,103 |
CSS | 1 | 201 | 14 | 1,029 |
PHP | 4 | 120 | 41 | 258 |
PO File | 2 | 47 | 89 | 129 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
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 | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.65MB with 0.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
themes/img/startup@2x.png | 252.70KB | 19.91KB | ▼ 92.12% |
themes/img/startup@5.png | 337.99KB | 22.58KB | ▼ 93.32% |
themes/img/reload.png | 2.69KB | 2.39KB | ▼ 11.06% |
themes/img/arrow.png | 0.45KB | 0.27KB | ▼ 40.13% |
themes/img/icon.png | 7.76KB | 3.55KB | ▼ 54.29% |