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
Install script ran successfully
Server metrics [RAM: ▲2.45MB] [CPU: ▲20.17ms] Passed 4 tests
An overview of server-side resources used by Age Gate
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.40 ▲2.93 | 67.21 ▲25.16 |
Dashboard /wp-admin | 5.60 ▲2.29 | 63.02 ▲13.13 |
Posts /wp-admin/edit.php | 6.03 ▲2.67 | 72.96 ▲25.67 |
Add New Post /wp-admin/post-new.php | 8.52 ▲2.63 | 109.15 ▲29.17 |
Media Library /wp-admin/upload.php | 5.45 ▲2.22 | 49.69 ▲16.73 |
Content /wp-admin/admin.php?page=age-gate-content | 5.66 | 58.00 |
Troubleshooting /wp-admin/admin.php?page=age-gate-troubleshooting | 5.59 | 53.33 |
Advanced /wp-admin/admin.php?page=age-gate-advanced | 5.62 | 53.74 |
Restrictions /wp-admin/admin.php?page=age-gate | 5.67 | 54.53 |
Appearance /wp-admin/admin.php?page=age-gate-appearance | 5.66 | 51.02 |
Messages /wp-admin/admin.php?page=age-gate-message | 5.64 | 54.04 |
Tools /wp-admin/admin.php?page=age-gate-tools | 5.63 | 51.62 |
Access /wp-admin/admin.php?page=age-gate-access | 5.62 | 55.71 |
Server storage [IO: ▲3.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 936 new files
Database: no new tables, 13 new options
New WordPress options |
---|
age_gate_tools |
age_gate_appearance |
age_gate_content |
age_gate_advanced |
age_gate_version |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
age_gate_messages |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Age Gate
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,073 ▲326 | 14.19 ▼0.18 | 37.48 ▲35.79 | 38.98 ▼5.21 |
Dashboard /wp-admin | 2,250 ▲72 | 5.64 ▼0.07 | 98.32 ▼13.42 | 42.44 ▼1.06 |
Posts /wp-admin/edit.php | 2,382 ▲279 | 3.55 ▲1.60 | 101.55 ▲58.25 | 40.29 ▲3.45 |
Add New Post /wp-admin/post-new.php | 6,282 ▲4,756 | 26.04 ▲2.55 | 843.78 ▲243.15 | 35.32 ▼19.99 |
Media Library /wp-admin/upload.php | 1,457 ▲54 | 4.19 ▼0.03 | 81.33 ▼17.09 | 42.40 ▼0.44 |
Content /wp-admin/admin.php?page=age-gate-content | 1,804 | 4.11 | 78.36 | 34.60 |
Troubleshooting /wp-admin/admin.php?page=age-gate-troubleshooting | 1,383 | 3.92 | 69.09 | 38.19 |
Advanced /wp-admin/admin.php?page=age-gate-advanced | 1,925 | 3.70 | 58.92 | 37.80 |
Restrictions /wp-admin/admin.php?page=age-gate | 1,811 | 3.81 | 56.83 | 29.56 |
Appearance /wp-admin/admin.php?page=age-gate-appearance | 2,142 | 3.65 | 57.14 | 29.33 |
Messages /wp-admin/admin.php?page=age-gate-message | 1,938 | 3.88 | 70.25 | 49.48 |
Tools /wp-admin/admin.php?page=age-gate-tools | 1,669 | 3.83 | 51.18 | 33.58 |
Access /wp-admin/admin.php?page=age-gate-access | 1,842 | 4.00 | 47.26 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Please fix the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/age-gate/vendor/league/plates/example/templates/sidebar.php
- > /wp-content/plugins/age-gate/src/Resources/views/public/partials/form/close.php
- 378× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/age-gate/src/Resources/views/admin/term/edit-wrapper.php:2
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Fields\\FieldsInterface' not found in wp-content/plugins/age-gate/vendor/ramsey/uuid/src/Rfc4122/FieldsInterface.php:40
- > PHP Fatal error
Uncaught Error: Class 'Tests\\BaseTestCase' not found in wp-content/plugins/age-gate/vendor/asylum/validation/tests/Filters/SanitizeStringFilterTest.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Converter\\TimeConverterInterface' not found in wp-content/plugins/age-gate/vendor/ramsey/uuid/src/Converter/Time/GenericTimeConverter.php:35
- > PHP Fatal error
Uncaught Error: Interface 'League\\HTMLToMarkdown\\Converter\\ConverterInterface' not found in wp-content/plugins/age-gate/vendor/league/html-to-markdown/src/Converter/DefaultConverter.php:11
- > PHP Warning
include(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/age-gate/vendor/nicmart/string-template/benchmarks/engine.php on line 14
- > PHP Notice
Trying to get property 'remember' of non-object in wp-content/plugins/age-gate/src/Resources/views/public/partials/form/sections/remember.php on line 1
- > PHP Fatal error
Uncaught Error: Interface 'Ramsey\\Uuid\\Provider\odeProviderInterface' not found in wp-content/plugins/age-gate/vendor/ramsey/uuid/src/Provider/Node/RandomNodeProvider.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function collect() in wp-content/plugins/age-gate/src/Resources/views/admin/layouts/default.php:2
- > PHP Fatal error
Trait 'AgeGate\\Presentation\\ClassNames' not found in wp-content/plugins/age-gate/src/Presentation/Attribute.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=age-gate-appearance
- > Rendering (warning) in unknown
/wp-admin/admin.php?page=age-gate-appearance 256 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: These screenshots lack descriptions #7, #8 in age-gate/assets to your readme.txt
- Tags: You are using too many tags: 22 tag instead of maximum 10
age-gate/age-gate.php 92% from 13 tests
The main file in "Age Gate" v. 3.3.1 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:
- Domain Path: The domain path folder does not exist ("/language")
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
Everything looks great! No dangerous files found in this plugin44,919 lines of code in 885 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 676 | 8,699 | 19,613 | 35,956 |
JSON | 32 | 0 | 0 | 2,802 |
Markdown | 53 | 1,027 | 0 | 2,686 |
Sass | 58 | 276 | 85 | 1,517 |
JavaScript | 35 | 402 | 73 | 1,314 |
YAML | 13 | 56 | 7 | 337 |
HTML | 5 | 11 | 2 | 125 |
XML | 5 | 11 | 3 | 98 |
CSS | 5 | 4 | 8 | 31 |
SVG | 1 | 0 | 0 | 29 |
Bourne Shell | 1 | 3 | 11 | 12 |
TOML | 1 | 3 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 5.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 122 | |
Interfaces | 153 | |
Traits | 21 | |
Classes | 393 | |
▷ Abstract classes | 21 | 5.34% |
▷ Concrete classes | 372 | 94.66% |
▷ Final classes | 37 | 9.95% |
Methods | 3,054 | |
▷ Static methods | 295 | 9.66% |
▷ Public methods | 2,688 | 88.02% |
▷ Protected methods | 217 | 7.11% |
▷ Private methods | 149 | 4.88% |
Functions | 339 | |
▷ Named functions | 151 | 44.54% |
▷ Anonymous functions | 188 | 55.46% |
Constants | 233 | |
▷ Global constants | 13 | 5.58% |
▷ Class constants | 220 | 94.42% |
▷ Public constants | 193 | 87.73% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/img/banner-772x250.png | 24.24KB | 6.12KB | ▼ 74.77% |
vendor/league/plates/doc/static/favicon/apple-touch-icon-precomposed.png | 5.40KB | 2.79KB | ▼ 48.42% |
dist/img/thumbnail-128x128.png | 3.79KB | 1.97KB | ▼ 48.00% |
src/Resources/assets/img/banner-772x250.png | 24.24KB | 6.12KB | ▼ 74.77% |
vendor/league/plates/doc/static/images/logo.png | 2.25KB | 1.53KB | ▼ 32.22% |