Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.70MB] [CPU: ▼53.47ms] Passed 4 tests
An overview of server-side resources used by Checking Variables (Dev. Tool)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.16 | 8.96 ▼34.21 |
Dashboard /wp-admin | 2.33 ▼1.02 | 11.04 ▼50.87 |
Posts /wp-admin/edit.php | 2.33 ▼1.03 | 10.86 ▼38.38 |
Add New Post /wp-admin/post-new.php | 2.33 ▼3.57 | 10.61 ▼90.41 |
Media Library /wp-admin/upload.php | 2.33 ▼0.91 | 9.37 ▼24.21 |
Check Variables /wp-admin/options-general.php?page=check-variables | 2.33 | 9.66 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Checking Variables (Dev. Tool)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.52 ▼0.86 | 8.29 ▲6.49 | 44.21 ▼2.26 |
Dashboard /wp-admin | 2,200 ▲35 | 5.66 ▲0.07 | 82.95 ▼5.78 | 40.04 ▼2.39 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.02 ▲0.01 | 42.25 ▲5.66 | 38.37 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.20 ▼5.55 | 661.56 ▲20.35 | 79.40 ▲16.11 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.39 ▲0.18 | 106.56 ▲2.39 | 45.93 ▼4.31 |
Check Variables /wp-admin/options-general.php?page=check-variables | 919 | 1.69 | 25.80 | 25.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/query-monitor-extension-checking-variables/classes/class.io.php+47
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=check-variables
- > Notice in wp-content/plugins/query-monitor-extension-checking-variables/classes/class.io.php+47
Trying to access array offset on value of type bool
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
6 plugin tags: monitor, php, debug, query, develop...
query-monitor-extension-checking-variables/query-monitor-check-var.php 85% from 13 tests
The main PHP script in "Checking Variables (Dev. Tool)" version 4.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("query-monitor-extension-checking-variables.php" instead of "query-monitor-check-var.php")
- 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,194 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 266 | 131 | 995 |
LESS | 3 | 26 | 11 | 91 |
CSS | 1 | 0 | 10 | 85 |
JavaScript | 2 | 7 | 5 | 23 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 33.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.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 | 47 | |
▷ Static methods | 7 | 14.89% |
▷ Public methods | 25 | 53.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 46.81% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin