Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.34ms] Passed 4 tests
An overview of server-side resources used by Age Verify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.49 ▲0.38 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.37 ▼4.57 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.84 ▲2.94 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.87 ▼11.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.58 ▲1.89 |
Age Verify /wp-admin/options-general.php?page=age-verify | 3.21 | 29.79 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Age Verify: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲74 | 14.48 ▲0.10 | 1.75 ▼0.05 | 44.30 ▼0.28 |
Dashboard /wp-admin | 2,207 ▲19 | 5.77 ▲0.88 | 99.15 ▼4.93 | 40.41 ▼0.42 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.01 | 39.63 ▼1.95 | 34.83 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,545 ▲9 | 18.50 ▼4.86 | 600.85 ▼4.94 | 59.63 ▲12.66 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.16 ▼0.05 | 99.31 ▲5.13 | 44.92 ▲1.32 |
Age Verify /wp-admin/options-general.php?page=age-verify | 1,250 | 2.40 | 56.06 | 28.59 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=age-verify
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=age-verify
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: age, verify, restrict
age-verify/age-verify.php Passed 13 tests
Analyzing the main PHP file in "Age Verify" version 0.3.0
68 characters long description:
A simple way to ask visitors for their age before viewing your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin720 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 343 | 558 | 550 |
PO File | 1 | 44 | 57 | 107 |
CSS | 1 | 6 | 1 | 57 |
JavaScript | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected