Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.03ms] Passed 4 tests
Analyzing server-side resources used by Age Okay
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.86 ▲3.62 |
Dashboard /wp-admin | 3.51 ▲0.20 | 49.89 ▲0.53 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 44.54 ▼3.34 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 81.11 ▼16.31 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.45 ▲3.00 |
Editor /wp-admin/admin.php?page=age-okay | 3.73 | 38.30 |
Documentation /wp-admin/admin.php?page=age-okay-docs | 3.55 | 35.57 |
Settings /wp-admin/admin.php?page=age-okay-settings | 3.52 | 39.52 |
GET PRO /wp-admin/admin.php?page=age-okay-pro | 3.44 | 34.06 |
Translations /wp-admin/admin.php?page=age-okay-trans | 3.48 | 36.60 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Age Okay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲205 | 13.68 ▼0.70 | 9.41 ▲7.61 | 42.95 ▲3.37 |
Dashboard /wp-admin | 2,265 ▲77 | 5.85 ▲0.03 | 100.38 ▼3.07 | 40.17 ▼3.57 |
Posts /wp-admin/edit.php | 2,151 ▲62 | 2.04 ▼0.00 | 34.78 ▼0.03 | 32.97 ▼0.52 |
Add New Post /wp-admin/post-new.php | 1,565 ▲46 | 23.41 ▲0.29 | 659.14 ▼7.24 | 53.48 ▲1.78 |
Media Library /wp-admin/upload.php | 1,448 ▲60 | 4.21 ▲0.03 | 93.40 ▼2.74 | 42.27 ▼1.95 |
Editor /wp-admin/admin.php?page=age-okay | 4,599 | 4.87 | 149.76 | 61.15 |
Documentation /wp-admin/admin.php?page=age-okay-docs | 1,646 | 3.40 | 41.11 | 42.93 |
Settings /wp-admin/admin.php?page=age-okay-settings | 1,395 | 3.41 | 43.54 | 29.28 |
GET PRO /wp-admin/admin.php?page=age-okay-pro | 1,258 | 3.35 | 40.86 | 41.89 |
Translations /wp-admin/admin.php?page=age-okay-trans | 1,413 | 3.45 | 46.20 | 47.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/age-okay/admin/partials/age-okay-admin-translations.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/age-okay/admin/partials/age-okay-admin-editor.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/age-okay/admin/partials/age-okay-admin-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/age-okay/admin/partials/age-okay-admin-pro.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/age-okay/public/partials/age-okay-public-verify.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/age-okay/admin/partials/age-okay-admin-docs.php:20
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: You are using too many tags: 12 tag instead of maximum 10
age-okay/age-okay.php Passed 13 tests
The main PHP file in "Age Okay" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
23 characters long description:
Age Verification Plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin4,737 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 287 | 804 | 2,096 |
CSS | 6 | 204 | 23 | 1,122 |
PO File | 1 | 314 | 428 | 1,029 |
JavaScript | 4 | 56 | 52 | 490 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 31.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 38 | 77.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 22.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin