Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.09ms] Passed 4 tests
A check of server-side resources used by Query Recorder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 42.72 ▲0.85 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.42 ▼16.18 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.37 ▼0.45 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.60 ▼10.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.47 ▼0.91 |
Query Recorder /wp-admin/options-general.php?page=query-recorder | 3.26 | 34.55 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
query_recorder |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Query Recorder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲171 | 14.03 ▼0.58 | 8.88 ▲7.22 | 43.93 ▲3.03 |
Dashboard /wp-admin | 2,242 ▲35 | 5.91 ▲0.95 | 109.82 ▼3.74 | 44.98 ▲2.20 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.05 ▲0.04 | 37.34 ▼0.22 | 33.42 ▼8.16 |
Add New Post /wp-admin/post-new.php | 1,546 ▲1 | 23.17 ▲0.16 | 625.83 ▼62.99 | 58.76 ▼3.79 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.30 ▲0.15 | 109.81 ▼9.08 | 45.43 ▼4.48 |
Query Recorder /wp-admin/options-general.php?page=query-recorder | 1,023 | 2.08 | 27.79 | 48.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/query-recorder/query-recorder.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/query-recorder/template/sidebar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/query-recorder/template/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: deployment, database, migrate, mysql
query-recorder/query-recorder.php Passed 13 tests
The main PHP script in "Query Recorder" version 1.0.1 is automatically included on every request by WordPress
46 characters long description:
Record SQL queries to a text file to run later
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin786 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 75 | 39 | 261 |
Sass | 2 | 37 | 0 | 194 |
CSS | 2 | 0 | 8 | 181 |
JavaScript | 4 | 33 | 38 | 133 |
JSON | 1 | 0 | 0 | 10 |
Ruby | 1 | 6 | 12 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected