Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/edd-discounts-by-time/edd_discounts_by_time.php+13
Non-static method EDD_Dependencies::edd_active_check() should not be called statically
Server metrics [RAM: ▼1.96MB] [CPU: ▼53.88ms] Passed 4 tests
A check of server-side resources used by Edd Discounts By Time
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.39 ▼37.30 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.21 ▼46.61 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.02 ▼45.03 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.99 ▼86.59 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.27 ▼29.12 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Edd Discounts By Time: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲41 | 14.40 ▲0.05 | 1.90 ▲0.26 | 43.80 ▼3.07 |
Dashboard /wp-admin | 2,208 ▲31 | 5.61 ▲0.04 | 90.75 ▼2.19 | 40.49 ▼2.19 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.03 ▲0.06 | 36.27 ▼1.67 | 36.34 ▲3.48 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.42 ▲0.49 | 599.16 ▲9.97 | 46.25 ▼9.65 |
Media Library /wp-admin/upload.php | 1,410 ▲16 | 4.24 ▲0.05 | 98.09 ▼3.11 | 44.31 ▼0.27 |
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
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/edd-discounts-by-time/edd_discounts_by_time.php+13
Non-static method EDD_Dependencies::edd_active_check() should not be called statically
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/edd-discounts-by-time/includes/class-dc-dependencies.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: easy digital downloads discount, discount, edd discount, edd add-on, easy digital downloads...
edd-discounts-by-time/edd_discounts_by_time.php 92% from 13 tests
The primary PHP file in "Edd Discounts By Time" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("edd-discounts-by-time.php" instead of "edd_discounts_by_time.php")
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
There were no executable files found in this plugin522 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 62 | 56 | 330 |
CSS | 2 | 18 | 0 | 101 |
PO File | 1 | 30 | 31 | 76 |
JavaScript | 2 | 1 | 5 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dclogo.png | 3.46KB | 0.84KB | ▼ 75.80% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
assets/images/fpd/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |
assets/images/dualcube.png | 3.29KB | 0.65KB | ▼ 80.17% |