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.05MB] [CPU: ▼124.93ms] Passed 4 tests
Analyzing server-side resources used by EDD Promo
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 39.13 ▼6.72 |
Dashboard /wp-admin | 3.38 ▼0.01 | 47.22 ▼475.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.82 ▼12.14 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.14 ▼4.91 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.73 ▲4.30 |
EDD Promo /wp-admin/options-general.php?page=edd_promo_options | 3.34 | 36.89 |
Server storage [IO: ▲0.50MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 55 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_eddpromorecords |
wp_eddpromonewsletter |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
edd_promo_options |
Browser metrics Passed 4 tests
Checking browser requirements for EDD Promo
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲53 | 14.80 ▲0.37 | 1.79 ▼0.31 | 43.80 ▲1.29 |
Dashboard /wp-admin | 2,210 ▲22 | 4.84 ▼0.07 | 98.04 ▼0.47 | 37.62 ▲0.01 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.04 ▼0.01 | 40.29 ▲4.29 | 35.13 ▲1.40 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 18.32 ▼4.70 | 639.67 ▼66.73 | 63.27 ▼5.21 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.21 ▼0.03 | 97.14 ▼9.71 | 44.74 ▲3.23 |
EDD Promo /wp-admin/options-general.php?page=edd_promo_options | 1,651 | 7.69 | 151.16 | 71.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/edd-promo/edd.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-promo/edd-promo-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/edd-promo/edd.php:77
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-promo/unsubscribe.php:17
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/edd-promo/edd.php on line 25
- > PHP Notice
Trying to get property 'user_email' of non-object in wp-content/plugins/edd-promo/unsubscribe.php on line 6
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/edd-promo/edd.php on line 23
- > PHP Notice
Trying to get property 'ID' of non-object in wp-content/plugins/edd-promo/unsubscribe.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-promo/templates/template-1.php:5
- > PHP Notice
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 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (The default settings page provided with EDD Promo. Tested on many email clients like Gmail, Yahoo!, Live/Hotmail, etc.), #2 (Sample email is provided with EDD Promo.), #3 (Sample Dashboard section is provided with EDD Promo.)
edd-promo/edd.php 92% from 13 tests
The main PHP file in "EDD Promo" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("edd-promo.php" instead of "edd.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin6,616 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 22 | 620 | 452 | 4,600 |
HTML | 9 | 105 | 10 | 1,112 |
CSS | 9 | 104 | 10 | 480 |
PHP | 5 | 118 | 165 | 419 |
Markdown | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 1.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
3 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 19.00KB | 9.37KB | ▼ 50.70% |
screenshot-2.png | 136.51KB | 39.43KB | ▼ 71.12% |
screenshot-3.png | 11.39KB | 6.44KB | ▼ 43.47% |