Benchmarks
Plugin footprint 82% 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: ▲0.21MB] [CPU: ▼4.10ms] 75% from 4 tests
This is a short check of server-side resources used by Agy verification
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 912.16ms on /wp-admin/tools.php?page=agy-dashboard)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.53 ▲2.72 |
Dashboard /wp-admin | 3.52 ▲0.22 | 45.42 ▲0.43 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 45.56 ▼1.14 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 82.89 ▼16.89 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 34.30 ▲1.19 |
Agy Verification /wp-admin/tools.php?page=agy-dashboard | 3.50 | 912.16 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Agy verification: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.26 ▼1.11 | 1.74 ▼0.03 | 42.17 ▼1.94 |
Dashboard /wp-admin | 2,221 ▲30 | 5.80 ▲0.93 | 98.27 ▼7.80 | 38.71 ▼3.21 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▲0.03 | 37.42 ▼1.36 | 31.38 ▼4.84 |
Add New Post /wp-admin/post-new.php | 1,538 ▲5 | 23.25 ▼0.31 | 631.50 ▼21.97 | 60.88 ▲10.55 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.25 ▲0.07 | 97.25 ▲0.64 | 42.22 ▼2.91 |
Agy Verification /wp-admin/tools.php?page=agy-dashboard | 1,595 | 2.22 | 25.73 | 40.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
include(AGY_PLUGIN_PATH/public/Agy_Public.php): failed to open stream: No such file or directory in wp-content/plugins/agy-verification/public/template-parts/agy_template_basic.php on line 3
- > PHP Warning
include_once(AGY_PLUGIN_PATH/includes/Agy_Dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/agy-verification/public/Agy_Public.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin-install.php' (include_path='.:/usr/share/php') in wp-content/plugins/agy-verification/includes/templates/status-log.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/agy-verification/includes/templates/status-log.php on line 3
- > PHP Warning
include(): Failed opening 'AGY_PLUGIN_PATH/public/Agy_Public.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/agy-verification/public/template-parts/agy_template_basic.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/agy-verification/includes/templates/status-log.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Agy_Dashboard' not found in wp-content/plugins/agy-verification/public/template-parts/agy_template_basic.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/agy-verification/admin/Agy_Admin.php:14
- > PHP Fatal error
Uncaught Error: Class 'Agy_Dashboard' not found in wp-content/plugins/agy-verification/public/Agy_Public.php:13
- > PHP Warning
include(AGY_PLUGIN_PATH/includes/Agy_Dashboard.php): failed to open stream: No such file or directory in wp-content/plugins/agy-verification/public/template-parts/agy_template_basic.php on line 2
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- 12 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=agy-dashboard
- > Rendering (warning) in unknown
/wp-admin/tools.php?page=agy-dashboard 182 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: content restriction, age restriction, verification, content verification, age verification...
agy-verification/agy-verification.php 85% from 13 tests
Analyzing the main PHP file in "Agy verification" version 1.2.0
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 188 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
No dangerous file extensions were detected1,264 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 186 | 165 | 965 |
CSS | 2 | 53 | 3 | 253 |
JavaScript | 4 | 7 | 0 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 63 | |
▷ Static methods | 1 | 1.59% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 3 | 4.76% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 6 | |
▷ Global constants | 6 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/agy-logo.png | 15.70KB | 6.42KB | ▼ 59.11% |