Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.75ms] Passed 4 tests
A check of server-side resources used by WooCommerce Alcohol Sale Restrictions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.19 ▼6.78 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.02 ▼17.65 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 46.58 ▲2.00 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.63 ▼6.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.28 ▼0.26 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WooCommerce Alcohol Sale Restrictions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.31 ▼0.04 | 1.53 ▼0.06 | 36.33 ▼9.89 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.07 | 83.09 ▼18.72 | 37.02 ▼6.23 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.09 | 33.49 ▼4.22 | 34.56 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.32 ▲0.12 | 686.65 ▲25.54 | 63.48 ▲6.37 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.26 ▲0.03 | 98.03 ▲1.28 | 44.35 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: time, woocommerce, alcohol, sale, restriction
wc-alcohol/wc-alcohol.php Passed 13 tests
This is the main PHP file of "WooCommerce Alcohol Sale Restrictions" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
WooCommerce alcohol sale limitations during restriction hours
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected455 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 77 | 59 | 293 |
PO File | 2 | 40 | 44 | 134 |
JSON | 1 | 0 | 0 | 28 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 44.00 |
▷ Minimum class complexity | 44.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 3 | 15.00% |
▷ Public methods | 9 | 45.00% |
▷ Protected methods | 10 | 50.00% |
▷ Private methods | 1 | 5.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected