Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.02ms] Passed 4 tests
A check of server-side resources used by Discount for Envato Customers with EDD Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.86 ▼4.86 |
Dashboard /wp-admin | 3.45 ▲0.14 | 46.47 ▼4.99 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.20 ▼5.09 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 100.86 ▼5.13 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 34.89 ▲0.85 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_edddfe_buyer |
wp_edddfe_plans |
wp_edddfe_license_details |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Discount for Envato Customers with EDD Products
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲117 | 13.55 ▼0.85 | 5.58 ▲3.58 | 38.99 ▼4.64 |
Dashboard /wp-admin | 2,208 ▲17 | 5.86 ▲0.99 | 103.15 ▼1.11 | 39.15 ▼2.58 |
Posts /wp-admin/edit.php | 2,073 ▼19 | 2.00 ▲0.00 | 36.59 ▼3.62 | 33.96 ▼0.31 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.16 ▲5.50 | 656.33 ▼2.94 | 54.01 ▼3.97 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.26 ▲0.02 | 99.20 ▼12.76 | 44.00 ▼5.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 3 tables
- wp_edddfe_buyer
- wp_edddfe_license_details
- wp_edddfe_plans
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Edd_Discount_For_Envato_Customers_Provider' not found in wp-content/plugins/edd-discount-for-enavto-customers/admin/class-edd-discount-for-envato-customers-admin.php:23
- > PHP Fatal error
Uncaught Error: Class 'Edd_Discount_For_Envato_Customers_Provider' not found in wp-content/plugins/edd-discount-for-enavto-customers/public/class-edd-discount-for-envato-customers-public.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
6 plugin tags: product sales, discount, product sale, coupon, easy digital downloads...
edd-discount-for-enavto-customers/edd-discount-for-envato-customers.php 92% from 13 tests
The main PHP script in "Discount for Envato Customers with EDD Products" version 1.0.6 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("edd-discount-for-enavto-customers.php" instead of "edd-discount-for-envato-customers.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected853 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 132 | 419 | 743 |
CSS | 2 | 7 | 8 | 85 |
JavaScript | 2 | 5 | 54 | 25 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 8.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 3 | 6.25% |
▷ Public methods | 28 | 58.33% |
▷ Protected methods | 7 | 14.58% |
▷ Private methods | 13 | 27.08% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin