Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.91ms] Passed 4 tests
A check of server-side resources used by Checkout Styler for Easy Digital Downloads
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.44 ▼5.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 59.14 ▲7.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.05 ▲3.06 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.35 ▼12.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.88 ▲9.26 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Checkout Styler for Easy Digital Downloads
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.03 | 1.78 ▼0.03 | 45.59 ▲5.68 |
Dashboard /wp-admin | 2,195 ▲15 | 5.50 ▼0.13 | 90.90 ▲1.01 | 40.00 ▼3.50 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.09 | 34.31 ▼1.28 | 40.61 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.16 ▼0.42 | 659.55 ▲47.57 | 51.03 ▼17.98 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.01 | 96.06 ▼15.03 | 41.38 ▼0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(EDD_CHECKOUT_STYLER_DIRincludes/class-edd-customizer.php): failed to open stream: No such file or directory in wp-content/plugins/checkout-styler-for-easy-digital-downloads/includes/customizer.php on line 3
- > PHP Warning
Use of undefined constant EDD_CHECKOUT_STYLER_DIR - assumed 'EDD_CHECKOUT_STYLER_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/checkout-styler-for-easy-digital-downloads/includes/customizer.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/checkout-styler-for-easy-digital-downloads/includes/class-edd-customizer.php:63
- > PHP Fatal error
require_once(): Failed opening required 'EDD_CHECKOUT_STYLER_DIRincludes/class-edd-customizer.php' (include_path='.:/usr/share/php') in wp-content/plugins/checkout-styler-for-easy-digital-downloads/includes/customizer.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please describe screenshot #13 in checkout-styler-for-easy-digital-downloads/assets to your readme.txt
checkout-styler-for-easy-digital-downloads/edd-styler.php 85% from 13 tests
The main PHP script in "Checkout Styler for Easy Digital Downloads" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: It is recommended to name the main PHP file as the plugin slug ("checkout-styler-for-easy-digital-downloads.php" instead of "edd-styler.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,822 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 117 | 254 | 3,822 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.77 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 20 | |
▷ Static methods | 14 | 70.00% |
▷ Public methods | 13 | 65.00% |
▷ Protected methods | 6 | 30.00% |
▷ Private methods | 1 | 5.00% |
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
No PNG images were found in this plugin