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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.22ms] Passed 4 tests
Analyzing server-side resources used by Query monitor Twig profile
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.41 ▼0.05 | 25.51 ▼17.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 55.78 ▲2.95 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.46 ▼3.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 95.65 ▼14.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.21 ▲2.61 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Query monitor Twig profile
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,454 ▼307 | 14.19 ▼0.16 | 0.49 ▼1.19 | 20.71 ▼23.16 |
Dashboard /wp-admin | 2,189 ▲12 | 5.49 ▼0.16 | 89.92 ▼5.53 | 38.42 ▼3.57 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.15 ▲0.17 | 36.04 ▼3.80 | 33.00 ▼2.06 |
Add New Post /wp-admin/post-new.php | 1,526 ▼6 | 23.27 ▲0.12 | 682.57 ▲3.49 | 71.89 ▲13.67 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.02 | 102.88 ▼1.38 | 46.07 ▼1.91 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Profiler\\Dumper\\BaseDumper' not found in wp-content/plugins/query-monitor-twig-profile/src/class-jsondumper.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig\\Profiler\\Dumper\\BaseDumper' not found in wp-content/plugins/query-monitor-twig-profile/src/class-dumper.php:19
- > PHP Fatal error
Uncaught Error: Class 'QM_Output_Html' not found in wp-content/plugins/query-monitor-twig-profile/src/class-output.php:17
- > PHP Fatal error
Uncaught Error: Class 'QM_Collector' not found in wp-content/plugins/query-monitor-twig-profile/src/class-collector.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function NdB\\QM_Twig_Profile\\add_filter() in wp-content/plugins/query-monitor-twig-profile/query-monitor-twig-profile.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
Please fix the following attributes:
- Tags: There are too many tags (11 tag instead of maximum 10)
query-monitor-twig-profile/query-monitor-twig-profile.php 85% from 13 tests
This is the main PHP file of "Query monitor Twig profile" version 1.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.0.0")
- Text Domain: Please use dashes and lowercase characters for text domains
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
Everything looks great! No dangerous files found in this plugin34,640 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 27,486 |
JavaScript | 5 | 1,002 | 1,392 | 6,660 |
PHP | 6 | 49 | 242 | 271 |
Vuejs Component | 2 | 17 | 0 | 189 |
Markdown | 1 | 5 | 0 | 19 |
XML | 1 | 5 | 0 | 10 |
HTML | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 4 | 80.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 60.00% |
▷ Protected methods | 6 | 30.00% |
▷ Private methods | 2 | 10.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin