Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼9.70ms] Passed 4 tests
This is a short check of server-side resources used by EDD Bulk Sale Price
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.38 ▼2.96 |
Dashboard /wp-admin | 3.31 ▼0.04 | 41.80 ▼19.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.83 ▲1.38 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 74.31 ▼16.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.74 ▼0.37 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for EDD Bulk Sale Price
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.37 ▼0.00 | 1.99 ▲0.16 | 47.05 ▼0.07 |
Dashboard /wp-admin | 2,204 ▲26 | 5.57 ▼0.14 | 93.54 ▼21.89 | 42.82 ▼1.47 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.01 ▲0.01 | 35.61 ▼0.06 | 33.11 ▼4.20 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.17 ▲0.11 | 677.83 ▲30.80 | 50.13 ▲2.09 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.23 ▲0.02 | 96.69 ▼4.26 | 40.96 ▼5.26 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant EDDSPP_ASSETS_URL - assumed 'EDDSPP_ASSETS_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/edd-bulk-sale-price/includes/admin/templates/bulk-sale-price.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/edd-bulk-sale-price/edd-sale-price-plus.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/edd-bulk-sale-price/includes/admin/templates/bulk-sale-price.php:66
- > PHP Warning
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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #3 (Bulk Sale Price page) image not found
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
edd-bulk-sale-price/edd-sale-price-plus.php 85% from 13 tests
The primary PHP file in "EDD Bulk Sale Price" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("edd-bulk-sale-price.php" instead of "edd-sale-price-plus.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
Success! There were no dangerous files found in this plugin1,411 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 411 | 573 | 1,144 |
JavaScript | 1 | 47 | 17 | 166 |
CSS | 1 | 2 | 0 | 70 |
PO File | 1 | 5 | 8 | 31 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 22.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 64 | |
▷ Static methods | 33 | 51.56% |
▷ Public methods | 57 | 89.06% |
▷ Protected methods | 2 | 3.12% |
▷ Private methods | 5 | 7.81% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 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
No PNG images were found in this plugin