Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲5.04MB] [CPU: ▲20.14ms] 75% from 4 tests
A check of server-side resources used by Easy Age Verify
The following require your attention
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.04MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 66.17 ▲26.39 |
Dashboard /wp-admin | 8.91 ▲5.60 | 71.68 ▲20.06 |
Posts /wp-admin/edit.php | 8.91 ▲5.55 | 77.89 ▲30.52 |
Add New Post /wp-admin/post-new.php | 9.47 ▲3.58 | 104.45 ▲3.58 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 70.26 ▲37.32 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 59.09 |
Server storage [IO: ▲3.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 199 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
_evav_user_age_verify_option |
widget_theysaidso_widget |
fs_active_plugins |
theysaidso_admin_options |
db_upgraded |
fs_accounts |
_evav_always_verify |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Easy Age Verify: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲181 | 14.07 ▼0.24 | 5.14 ▲3.32 | 29.34 ▼14.71 |
Dashboard /wp-admin | 2,240 ▲49 | 5.90 ▲0.00 | 110.08 ▲12.38 | 44.49 ▲4.05 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.99 ▼0.00 | 39.35 ▼6.35 | 37.79 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,532 ▲18 | 23.04 ▲5.62 | 659.19 ▲27.76 | 48.96 ▼5.82 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.23 ▲0.05 | 94.09 ▼11.73 | 44.03 ▼0.01 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,094 | 1.68 | 24.10 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
- > Notice in wp-content/plugins/easy-age-verify/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_theysaidso_widget
- _evav_user_age_verify_option
- _evav_always_verify
- fs_accounts
- widget_recent-posts
- fs_active_plugins
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- fs_debug_mode
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
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 on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
easy-age-verify/easy-age-verify.php Passed 13 tests
The primary PHP file in "Easy Age Verify" version 1.8.2 is used by WordPress to initiate all plugin functionality
111 characters long description:
Adds a mobile friendly age verification screen to adults only, vape or alcohol websites. Get set-up in minutes.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin36,056 lines of code in 147 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,121 | 17,861 | 34,078 |
PO File | 3 | 254 | 468 | 920 |
CSS | 15 | 86 | 0 | 465 |
JavaScript | 5 | 58 | 80 | 379 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 89.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 2 | 4.17% |
Methods | 1,288 | |
▷ Static methods | 201 | 15.61% |
▷ Public methods | 896 | 69.57% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 375 | 29.11% |
Functions | 153 | |
▷ Named functions | 152 | 99.35% |
▷ Anonymous functions | 1 | 0.65% |
Constants | 148 | |
▷ Global constants | 100 | 67.57% |
▷ Class constants | 48 | 32.43% |
▷ Public constants | 48 | 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
4 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
includes/images/icon.png | 40.95KB | 13.31KB | ▼ 67.51% |
includes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/images/5StarPlugins_Logo80x80.png | 2.08KB | 1.07KB | ▼ 48.52% |