Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.74ms] Passed 4 tests
Analyzing server-side resources used by EDD Mark As Addon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.24 ▼1.54 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.61 ▼1.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.91 ▼3.06 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.66 ▼16.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.29 ▲0.88 |
Server storage [IO: ▲4.99MB] [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: 357 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for EDD Mark As Addon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.33 ▼1.04 | 2.03 ▲0.15 | 43.61 ▼6.73 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.98 | 110.92 ▲9.51 | 40.29 ▼4.27 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.02 | 39.26 ▼1.96 | 34.97 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.27 ▲0.83 | 627.02 ▼29.02 | 54.03 ▼2.87 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.31 ▲0.13 | 99.77 ▲1.89 | 41.81 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 107× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Key_Value_Datastore' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Datastore/Theme_Options_Datastore.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Condition/Term_Condition.php:30
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Role_Condition.php:10
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Any_Equality_Comparer.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Select_Field' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Field/Radio_Field.php:8
- > PHP Notice
Undefined variable: errors in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/edd-mark-as-add-on/vendor/htmlburger/carbon-fields/core/Field/Separator_Field.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rest, edd, easy digital downloads, rest api, freemium addons
edd-mark-as-add-on/edd-mark-as-addon.php 85% from 13 tests
"EDD Mark As Addon" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("edd-mark-as-add-on.php" instead of "edd-mark-as-addon.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin76,912 lines of code in 335 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 142 | 15,774 | 27,198 | 64,907 |
PHP | 140 | 2,243 | 6,013 | 7,971 |
PO File | 15 | 1,360 | 1,972 | 3,049 |
CSS | 28 | 290 | 127 | 585 |
JSON | 7 | 0 | 0 | 332 |
Markdown | 3 | 24 | 0 | 68 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 119 | |
▷ Abstract classes | 11 | 9.24% |
▷ Concrete classes | 108 | 90.76% |
▷ Final classes | 2 | 1.85% |
Methods | 821 | |
▷ Static methods | 90 | 10.96% |
▷ Public methods | 664 | 80.88% |
▷ Protected methods | 151 | 18.39% |
▷ Private methods | 6 | 0.73% |
Functions | 95 | |
▷ Named functions | 22 | 23.16% |
▷ Anonymous functions | 73 | 76.84% |
Constants | 32 | |
▷ Global constants | 10 | 31.25% |
▷ Class constants | 22 | 68.75% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin