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.21MB] [CPU: ▲0.74ms] Passed 4 tests
Analyzing server-side resources used by Age Gator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.09 ▲2.41 |
Dashboard /wp-admin | 3.52 ▲0.21 | 56.08 ▲5.99 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 52.84 ▲1.17 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 92.00 ▼6.61 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 44.97 ▲6.32 |
Server storage [IO: ▲1.08MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 62 new files
Database: no new tables, 50 new options
New WordPress options |
---|
age_gator_remember_user_time |
age_gator_secondary_button_background_color |
widget_recent-comments |
age_gator_whitelist |
age_gator_prompt_delay_length |
widget_recent-posts |
age_gator_pass_button_text |
age_gator_checkbox_text |
theysaidso_admin_options |
age_gator_submit_button_text |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Age Gator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,704 ▲933 | 14.56 ▲0.00 | 43.82 ▲41.00 | 53.74 ▲4.30 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.94 | 102.86 ▼10.12 | 55.03 ▲7.10 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.02 ▼0.03 | 35.48 ▼2.16 | 33.39 ▼4.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.15 ▲5.64 | 677.10 ▲41.35 | 52.49 ▼17.41 |
Media Library /wp-admin/upload.php | 1,552 ▲161 | 4.56 ▲0.35 | 101.87 ▲1.91 | 39.49 ▼5.54 |
Uninstaller [IO: ▲0.66MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/age-gate-plus/views/feedback_modal.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Tags: You are using too many tags: 17 tag instead of maximum 10
age-gate-plus/age-gator.php 85% from 13 tests
The primary PHP file in "Age Gator" version 1.06 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 281 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("age-gate-plus.php" instead of "age-gator.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin13,109 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 10,047 |
PHP | 15 | 96 | 37 | 1,269 |
Vuejs Component | 7 | 53 | 0 | 675 |
Sass | 13 | 121 | 0 | 660 |
JavaScript | 13 | 48 | 30 | 455 |
CSS | 3 | 0 | 3 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 24 | 88.89% |
▷ Public methods | 26 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.70% |
Functions | 7 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 7 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin