Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.64ms] Passed 4 tests
This is a short check of server-side resources used by AgeChecked for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.39 ▼0.07 | 33.26 ▼6.98 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.57 ▲1.52 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.59 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.33 ▼7.55 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.45 ▲0.12 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
AgeChecked for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.24 ▼0.29 | 1.88 ▲0.35 | 45.15 ▲4.15 |
Dashboard /wp-admin | 2,198 ▲21 | 5.64 ▲0.04 | 90.38 ▲3.70 | 74.54 ▲31.43 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.00 ▲0.02 | 34.35 ▼0.14 | 31.16 ▼7.64 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.50 ▼0.08 | 658.30 ▼11.18 | 152.73 ▲80.16 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.19 ▲0.02 | 92.01 ▼48.58 | 71.79 ▲8.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/agecheck/agecheck.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need to be fixed:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in agecheck/assets to your readme.txt
agecheck/agecheck.php Passed 13 tests
The principal PHP file in "AgeChecked for WooCommerce" v. 1.10 is loaded by WordPress automatically on each request
58 characters long description:
Perform age verifications with AgeChecked for WooCommerce.
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
Success! There were no dangerous files found in this plugin680 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 137 | 55 | 602 |
JavaScript | 2 | 21 | 22 | 72 |
INI | 1 | 1 | 0 | 4 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/js/images/agechecked-icon.png | 0.83KB | 0.97KB | 0.00% |
assets/js/images/agechecked-logo.png | 6.73KB | 3.60KB | ▼ 46.53% |
assets/images/agechecked-logo.png | 6.73KB | 3.60KB | ▼ 46.53% |
assets/images/agechecked-icon.png | 0.83KB | 0.97KB | 0.00% |