Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.59ms] Passed 4 tests
Server-side resources used by SQL Buddy - Database Management Made Easy
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.76 ▼3.16 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.33 ▼18.51 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.49 ▲3.76 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 81.16 ▼22.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.00 ▼2.25 |
SQL Buddy /wp-admin/tools.php?page=sql-buddy-dashboard | 3.25 | 34.68 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SQL Buddy - Database Management Made Easy
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.00 | 1.79 ▲0.13 | 40.90 ▼1.44 |
Dashboard /wp-admin | 2,207 ▲21 | 5.77 ▲0.84 | 103.21 ▼19.47 | 39.20 ▼7.83 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.18 ▲0.17 | 35.27 ▼2.09 | 31.87 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.00 ▼0.21 | 672.25 ▼38.30 | 54.40 ▼12.62 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▼0.01 | 95.35 ▼14.55 | 42.88 ▼2.69 |
SQL Buddy /wp-admin/tools.php?page=sql-buddy-dashboard | 1,073 | 7.84 | 182.07 | 43.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/sql-buddy/includes/templates/admin/dashboard.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/sql-buddy/includes/REST_API/Table_Controller.php:25
- > PHP Fatal error
Trait 'SQL_Buddy\\Traits\\Assets' not found in wp-content/plugins/sql-buddy/includes/Dashboard.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function SQL_Buddy\\register_activation_hook() in wp-content/plugins/sql-buddy/includes/namespace.php:52
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: database management, database queries, sql, database, database browser
sql-buddy/sql-buddy.php 92% from 13 tests
The primary PHP file in "SQL Buddy - Database Management Made Easy" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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 plugin1,028 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 232 | 580 | 1,022 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 10.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 66 | |
▷ Static methods | 7 | 10.61% |
▷ Public methods | 60 | 90.91% |
▷ Protected methods | 4 | 6.06% |
▷ Private methods | 2 | 3.03% |
Functions | 11 | |
▷ Named functions | 4 | 36.36% |
▷ Anonymous functions | 7 | 63.64% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-256x256.png | 25.79KB | 11.15KB | ▼ 56.78% |