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
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.38ms] Passed 4 tests
A check of server-side resources used by Wr Age Verification
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 43.70 ▲5.96 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.86 ▼0.28 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 48.17 ▲5.11 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 92.15 ▼1.40 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.18 ▲2.09 |
Add Country /wp-admin/admin.php?page=add-country | 3.66 | 32.51 |
Add State /wp-admin/admin.php?page=add-state | 3.28 | 30.05 |
Server storage [IO: ▲3.99MB] [DB: ▲0.02MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_age_v_country |
wp_age_v_settings |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Wr Age Verification: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,276 ▲505 | 13.91 ▼0.67 | 6.28 ▲4.38 | 47.00 ▲2.47 |
Dashboard /wp-admin | 2,236 ▲51 | 5.08 ▲0.19 | 105.98 ▼0.61 | 47.07 ▲3.53 |
Posts /wp-admin/edit.php | 2,119 ▲51 | 2.31 ▲0.30 | 40.43 ▲4.76 | 41.51 ▲7.16 |
Add New Post /wp-admin/post-new.php | 1,696 ▲177 | 22.63 ▼0.53 | 643.20 ▼14.90 | 38.93 ▼13.50 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.37 ▲0.13 | 100.15 ▲3.20 | 46.62 ▲4.13 |
Add Country /wp-admin/admin.php?page=add-country | 1,191 | 1.88 | 28.07 | 37.23 |
Add State /wp-admin/admin.php?page=add-state | 788 | 1.86 | 24.38 | 24.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_age_v_country
- wp_age_v_settings
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=add-state
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'Age_Verification_Admin' does not have a method 'display_plugin_state_page'
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wr-age-verification/public/partials/age-verification-public-display-one.php:18
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wr-age-verification/public/partials/age-verification-public-display-two.php:18
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wr-age-verification/public/partials/age-verification-public-display-template.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/wr-age-verification/public/partials/age-verification-public-display.php:18
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wr-age-verification/admin/partials/country-listing.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wr-age-verification ===
)
wr-age-verification/age-verification.php 92% from 13 tests
The main file in "Wr Age Verification" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wr-age-verification.php" instead of "age-verification.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,786 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 153 | 658 | 1,467 |
JavaScript | 6 | 9 | 65 | 176 |
CSS | 3 | 9 | 20 | 143 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 37 | 88.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.90% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.91MB with 0.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Screenshot-2.png | 85.72KB | 27.89KB | ▼ 67.46% |
Screenshot-6.png | 234.93KB | 84.04KB | ▼ 64.23% |
Screenshot-3.png | 64.41KB | 21.63KB | ▼ 66.42% |
admin/images/template1.png | 27.93KB | 12.13KB | ▼ 56.55% |
public/images/dummy-logo1.png | 11.97KB | 7.16KB | ▼ 40.19% |