Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.72ms] Passed 4 tests
An overview of server-side resources used by Easy Digital Downloads - Store Hours
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.73 ▲2.84 |
Dashboard /wp-admin | 3.33 ▼0.02 | 45.63 ▼16.23 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.67 ▼1.02 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.96 ▼16.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.46 ▲4.12 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Digital Downloads - Store Hours
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.69 ▲0.34 | 1.76 ▲0.09 | 37.31 ▼8.95 |
Dashboard /wp-admin | 2,195 ▲18 | 5.51 ▼0.14 | 86.81 ▼9.72 | 37.78 ▼1.57 |
Posts /wp-admin/edit.php | 2,106 ▲27 | 2.02 ▲0.02 | 39.36 ▲2.22 | 38.73 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 22.92 ▼0.20 | 606.64 ▼7.26 | 60.22 ▼18.91 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▼0.05 | 102.78 ▼7.75 | 44.02 ▼0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
easy-digital-downloads-store-hours/edd-store-hours.php 85% from 13 tests
The entry point to "Easy Digital Downloads - Store Hours" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("easy-digital-downloads-store-hours.php" instead of "edd-store-hours.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
There were no executable files found in this plugin766 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 155 | 293 | 626 |
CSS | 5 | 15 | 4 | 77 |
JavaScript | 3 | 11 | 4 | 63 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ui-icons_21759b_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
assets/images/ui-icons_999999_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/ui-icons_cc0000_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/images/calendar.png | 1.25KB | 1.45KB | 0.00% |
assets/images/ui-icons_333333_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |