Benchmarks
Plugin footprint 65% 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 gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▲1.70ms] Passed 4 tests
This is a short check of server-side resources used by Fluent Query Logger - Log Database Queries and analyze plugin database performance
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.36 ▲0.90 | 45.01 ▲1.98 |
Dashboard /wp-admin | 4.26 ▲0.95 | 50.63 ▲2.39 |
Posts /wp-admin/edit.php | 4.31 ▲0.95 | 49.52 ▲4.01 |
Add New Post /wp-admin/post-new.php | 6.85 ▲0.97 | 84.24 ▼1.59 |
Media Library /wp-admin/upload.php | 4.12 ▲0.89 | 40.23 ▲6.59 |
Fluent Query Logs /wp-admin/tools.php?page=fluent-query-logger | 5.19 | 41.40 |
Server storage [IO: ▲1.35MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 143 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fql_logs |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fluent Query Logger - Log Database Queries and analyze plugin database performance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.18 | 1.95 ▼0.35 | 40.41 ▼7.64 |
Dashboard /wp-admin | 2,213 ▲22 | 5.88 ▼0.02 | 97.42 ▼13.59 | 38.88 ▼0.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.00 | 35.84 ▲2.53 | 32.51 ▼1.96 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.36 ▲0.26 | 675.68 ▼18.54 | 53.76 ▼7.08 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.21 ▲0.02 | 98.43 ▲3.20 | 41.05 ▼0.12 |
Fluent Query Logs /wp-admin/tools.php?page=fluent-query-logger | 1,269 | 5.27 | 136.35 | 57.22 |
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
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_fql_logs
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 57× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'FluentQueryLogger\\Framework\\Support\\ArrayableInterface' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Model.php:38
- > PHP Notice
Undefined variable: app in wp-content/plugins/fluent-query-logger/boot/globals.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'FluentQueryLogger\\Framework\\Database\\Query\\Grammar' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Database/Query/MySqlGrammar.php:10
- > PHP Fatal error
Uncaught Error: Class 'FluentQueryLogger\\Framework\\Http\\Controller' not found in wp-content/plugins/fluent-query-logger/app/Http/Controllers/Controller.php:7
- > PHP Fatal error
Uncaught Error: Class 'FluentQueryLogger\\App\\Http\\Controllers\\Controller' not found in wp-content/plugins/fluent-query-logger/app/Http/Controllers/LogsController.php:8
- > PHP Fatal error
Trait 'FluentQueryLogger\\Framework\\Support\\MacroableTrait' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Database/Query/Builder.php on line 20
- > PHP Fatal error
Trait 'FluentQueryLogger\\Framework\\Request\\FileHandler' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Request/Request.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'FluentQueryLogger\\Framework\\Database\\Orm\\Model' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Database/Orm/Relations/Pivot.php:8
- > PHP Fatal error
Uncaught Error: Class 'FluentQueryLogger\\Framework\\Foundation\\RequestGuard' not found in wp-content/plugins/fluent-query-logger/app/Http/Requests/UserRequest.php:7
- > PHP Fatal error
Uncaught Error: Interface 'FluentQueryLogger\\Framework\\Pagination\\PaginatorInterface' not found in wp-content/plugins/fluent-query-logger/vendor/wpfluent/framework/src/WPFluent/Pagination/LengthAwarePaginatorInterface.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
2 plugin tags: database query logger, query monitor addon
fluent-query-logger/fluent-query-logger.php Passed 13 tests
This is the main PHP file of "Fluent Query Logger - Log Database Queries and analyze plugin database performance" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Query Logger Add-On for Query Monitor 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 plugin13,084 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 127 | 3,848 | 10,395 | 12,951 |
JSON | 3 | 0 | 0 | 130 |
JavaScript | 1 | 0 | 1 | 1 |
Markdown | 1 | 0 | 0 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 23 | |
Interfaces | 16 | |
Traits | 10 | |
Classes | 82 | |
▷ Abstract classes | 10 | 12.20% |
▷ Concrete classes | 72 | 87.80% |
▷ Final classes | 0 | 0.00% |
Methods | 1,495 | |
▷ Static methods | 157 | 10.50% |
▷ Public methods | 1,168 | 78.13% |
▷ Protected methods | 319 | 21.34% |
▷ Private methods | 8 | 0.54% |
Functions | 94 | |
▷ Named functions | 4 | 4.26% |
▷ Anonymous functions | 90 | 95.74% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 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 are no PNG files in this plugin