Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.84ms] Passed 4 tests
Server-side resources used by Discount by Answer for Easy Digital Downloads
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.92 ▲2.79 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.68 ▼19.37 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.92 ▼2.60 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 107.57 ▲2.73 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.58 ▼0.12 |
Server storage [IO: ▲2.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 449 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Discount by Answer for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.38 ▼0.12 | 1.77 ▼0.03 | 43.18 ▲0.21 |
Dashboard /wp-admin | 2,198 ▲17 | 5.56 ▼0.10 | 90.38 ▼13.14 | 42.47 ▲0.85 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.03 | 39.28 ▼2.81 | 38.06 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.04 ▲4.78 | 634.25 ▼0.16 | 51.74 ▼16.81 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.05 | 97.25 ▼16.00 | 42.75 ▼1.94 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/_common/utility/DiscountByAnswerForEDD_Utility.php+84
rmdir(/tmp/): Permission denied
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 items
- 285× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_Model__FormSubmission__Validator_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__ResetConfirm.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_Form' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/_common/form/AdminPageFramework_Form_Meta.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_PageLoadInfo_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_Answer_PostType_ListTable' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/answer/post_type/DiscountByAnswerForEDD_Answer_PostType.php:14
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_Property_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/meta_box/_model/AdminPageFramework_Property_post_meta_box.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_CheckOut_Fieldset_Input_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/checkout/fieldset/input/DiscountByAnswerForEDD_CheckOut_Fieldset_Input_textarea.php:13
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_FieldType_text' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_number.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_Property_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/admin_page/_model/AdminPageFramework_Property_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_Event_Ajax_Base' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/campaign/request_type/text/event/DiscountByAnswerForEDD_Campaign_RequestType_text_Event_Ajax_LoadAnsweredKeywords.php:15
- > PHP Fatal error
Uncaught Error: Class 'DiscountByAnswerForEDD_AdminPageFramework_Factory' not found in wp-content/plugins/discount-by-answer-for-easy-digital-downloads/include/library/apf/factory/widget/AdminPageFramework_Widget.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
discount-by-answer-for-easy-digital-downloads/discount-by-answer-for-easy-digital-downloads.php 85% from 13 tests
Analyzing the main PHP file in "Discount by Answer for Easy Digital Downloads" version 1.0.1
Please make the necessary changes and fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/language")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("language")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin41,926 lines of code in 434 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 307 | 1,871 | 4,967 | 21,817 |
JavaScript | 115 | 4,955 | 1,391 | 18,952 |
CSS | 10 | 149 | 103 | 1,085 |
Markdown | 2 | 28 | 0 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 416 | |
▷ Abstract classes | 103 | 24.76% |
▷ Concrete classes | 313 | 75.24% |
▷ Final classes | 4 | 1.28% |
Methods | 2,029 | |
▷ Static methods | 276 | 13.60% |
▷ Public methods | 1,109 | 54.66% |
▷ Protected methods | 373 | 18.38% |
▷ Private methods | 547 | 26.96% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 1 | 3.45% |
▷ Class constants | 28 | 96.55% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin