Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/sm-sql-logs/admin/partials/options_fnc.php+18
array_merge(): Expected parameter 1 to be an array, bool given
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.89ms] Passed 4 tests
Analyzing server-side resources used by SM - SQL logs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.03 ▼1.35 |
Dashboard /wp-admin | 3.38 ▲0.03 | 48.68 ▼11.69 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 48.54 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 83.83 ▼14.75 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.62 ▲1.17 |
Logs /wp-admin/admin.php?page=sm_sql_logs-logs | 3.79 | 42.63 |
Options /wp-admin/admin.php?page=sm_sql_logs-options | 3.27 | 31.74 |
Home /wp-admin/admin.php?page=sm_sql_logs | 3.27 | 31.59 |
Server storage [IO: ▲0.11MB] [DB: ▲0.14MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_sm_sql_logs |
New WordPress options |
---|
sm_sql_logs_options |
sql_logs_db_version |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
sm_sql_logs_settings |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
SM - SQL logs: 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,906 ▲145 | 13.79 ▼0.56 | 8.64 ▲7.13 | 44.17 ▲6.77 |
Dashboard /wp-admin | 2,214 ▲36 | 5.52 ▼0.15 | 86.18 ▼16.69 | 82.97 ▲38.67 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▼0.03 | 33.74 ▼2.12 | 36.79 ▲5.46 |
Add New Post /wp-admin/post-new.php | 1,555 ▲27 | 23.39 ▲0.20 | 755.63 ▲74.87 | 51.67 ▼5.03 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.14 ▼0.04 | 99.31 ▼14.27 | 47.71 ▼1.06 |
Logs /wp-admin/admin.php?page=sm_sql_logs-logs | 6,510 | 2.12 | 27.09 | 48.80 |
Options /wp-admin/admin.php?page=sm_sql_logs-options | 955 | 2.17 | 24.44 | 47.07 |
Home /wp-admin/admin.php?page=sm_sql_logs | 825 | 2.11 | 23.33 | 28.00 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- sm_sql_logs_settings
- sm_sql_logs_options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- sql_logs_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/sm-sql-logs/admin/partials/header_html.php
- > /wp-content/plugins/sm-sql-logs/public/partials/sm_sql_logs-public-display.php
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sm-sql-logs/admin/partials/logs.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sm-sql-logs/config.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sm-sql-logs/admin/partials/log_details.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sm-sql-logs/admin/partials/main.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/sm-sql-logs/admin/partials/options_fnc.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/sm-sql-logs/admin/partials/options.php:19
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: You are using too many tags: 13 tag instead of maximum 10
sm-sql-logs/sm_sql_logs.php 85% from 13 tests
The entry point to "SM - SQL logs" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sm-sql-logs.php" instead of "sm_sql_logs.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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,591 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 423 | 857 | 1,502 |
CSS | 2 | 18 | 8 | 83 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 26.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 25 | 46.30% |
▷ Public methods | 32 | 59.26% |
▷ Protected methods | 14 | 25.93% |
▷ Private methods | 8 | 14.81% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 3 | 16.67% |
▷ Class constants | 15 | 83.33% |
▷ Public constants | 15 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sm_sql_logs_admin_ico.png | 0.40KB | 0.29KB | ▼ 25.98% |