Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.37ms] Passed 4 tests
Server-side resources used by EDD Enhanced Ecommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 45.56 ▼1.91 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.11 ▼7.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.18 ▼2.82 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.77 ▼0.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.13 ▼0.84 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by EDD Enhanced Ecommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 13.64 ▼0.94 | 2.37 ▲0.46 | 46.02 ▼2.90 |
Dashboard /wp-admin | 2,209 ▲18 | 5.85 ▲0.74 | 102.28 ▼5.10 | 42.45 ▲1.64 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.13 ▲0.11 | 36.89 ▼3.51 | 33.81 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 21.96 ▼1.41 | 691.78 ▲75.84 | 63.51 ▲10.89 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.04 | 112.97 ▲0.83 | 49.47 ▲2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/edd-enhanced-ecommerce/index.php
- > /wp-content/plugins/edd-enhanced-ecommerce/public/panels/class-edd-enhanced-ecommerce-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-enhanced-ecommerce/admin/panels/about-plugin.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-enhanced-ecommerce/admin/panels/general-fields.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/edd-enhanced-ecommerce/admin/panels/sidebar.php:4
- > PHP Fatal error
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
edd-enhanced-ecommerce/edd-enhanced-ecommerce.php 85% from 13 tests
Analyzing the main PHP file in "EDD Enhanced Ecommerce" version 1.0.0
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.9" instead of "4.0.0")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,573 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 128 | 659 | 1,303 |
PO File | 1 | 62 | 62 | 197 |
CSS | 2 | 1 | 8 | 67 |
JavaScript | 2 | 2 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 4 | 8.33% |
▷ Public methods | 41 | 85.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 14.58% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
5 PNG files occupy 0.35MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/adwords.png | 19.19KB | 1.14KB | ▼ 94.08% |
admin/images/shopify_new.png | 1.32KB | 1.43KB | 0.00% |
admin/images/edd_ee_logo.png | 0.44KB | 0.80KB | 0.00% |
admin/images/plugin_bk.png | 332.93KB | 112.32KB | ▼ 66.26% |
admin/images/google_optimize.png | 1.41KB | 1.30KB | ▼ 8.17% |