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
Installer ran successfully
Server metrics [RAM: ▲5.40MB] [CPU: ▲26.08ms] 75% from 4 tests
This is a short check of server-side resources used by Marijuana Age Verify
It is recommended to improve the following
- Extra RAM: The extra memory usage must be under 5MB (currently 5.40MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 68.99 ▲32.27 |
Dashboard /wp-admin | 9.22 ▲5.92 | 76.55 ▲29.11 |
Posts /wp-admin/edit.php | 9.22 ▲5.87 | 80.46 ▲34.29 |
Add New Post /wp-admin/post-new.php | 9.97 ▲4.09 | 108.41 ▲8.65 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 68.38 ▲37.39 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 57.77 |
Server storage [IO: ▲3.33MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 198 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
fs_active_plugins |
fs_debug_mode |
_emav_always_verify |
can_compress_scripts |
fs_accounts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Marijuana Age Verify
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲191 | 13.76 ▼0.88 | 7.16 ▲4.94 | 34.83 ▼13.82 |
Dashboard /wp-admin | 2,240 ▲52 | 5.84 ▲0.80 | 103.25 ▼5.44 | 45.76 ▲2.59 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.02 ▲0.01 | 39.62 ▼1.39 | 38.71 ▲3.16 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 22.99 ▼0.12 | 668.04 ▲37.32 | 59.22 ▲6.34 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.21 ▲0.04 | 99.33 ▼4.76 | 45.66 ▲2.31 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 1.72 | 24.36 | 27.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/easy-marijuana-age-verify/includes/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 10 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- fs_accounts
- widget_theysaidso_widget
- fs_debug_mode
- fs_active_plugins
- db_upgraded
- widget_recent-comments
- _emav_always_verify
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
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
6 plugin tags: age verify, dispensary, cannabis, popup, marijuana...
easy-marijuana-age-verify/easy-marijuana-age-verify.php Passed 13 tests
"Marijuana Age Verify" version 1.5.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Age verification for marijuana websites.
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
Good job! No executable or dangerous file extensions detected35,578 lines of code in 146 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 123 | 8,120 | 17,858 | 34,089 |
PO File | 2 | 214 | 319 | 461 |
CSS | 15 | 78 | 0 | 428 |
JavaScript | 5 | 59 | 81 | 386 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 89.88 |
▷ 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 | 147 | |
▷ Named functions | 147 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.02MB 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/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
includes/images/icon.png | 15.28KB | 7.15KB | ▼ 53.22% |
includes/images/5StarPlugins_Logo80x80.png | 2.08KB | 1.07KB | ▼ 48.52% |