Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.56ms] Passed 4 tests
A check of server-side resources used by SQL Chart Builder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 34.77 ▼4.68 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.15 ▼3.43 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.92 ▲4.16 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.30 ▲9.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.79 ▼2.27 |
My SQL Charts /wp-admin/edit.php?post_type=gvn_schart | 3.37 | 37.38 |
Add New /wp-admin/post-new.php?post_type=gvn_schart | 3.46 | 42.58 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
guaven_sqlcharts_already_installed_2 |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for SQL Chart Builder
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲190 | 14.81 ▲0.18 | 10.99 ▲9.36 | 38.36 ▼6.72 |
Dashboard /wp-admin | 2,243 ▲69 | 5.28 ▼0.36 | 98.61 ▲7.06 | 39.61 ▲0.94 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 2.67 ▲0.68 | 44.77 ▲5.52 | 38.83 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6,236 ▲4,710 | 19.45 ▼3.77 | 928.92 ▲183.84 | 37.88 ▼12.12 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.90 ▲0.69 | 100.87 ▼1.07 | 44.48 ▼0.43 |
My SQL Charts /wp-admin/edit.php?post_type=gvn_schart | 1,983 | 2.51 | 43.25 | 40.44 |
Add New /wp-admin/post-new.php?post_type=gvn_schart | 1,925 | 3.24 | 60.36 | 71.77 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- guaven_sqlcharts_already_installed_2
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #6 is required in sql-chart-builder/assets to your readme.txt
sql-chart-builder/guaven_sqlcharts.php 77% from 13 tests
Analyzing the main PHP file in "SQL Chart Builder" version 2.3.6
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sql-chart-builder.php" instead of "guaven_sqlcharts.php")
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- 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 programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,409 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 192 | 28 | 1,254 |
JavaScript | 2 | 11 | 19 | 127 |
CSS | 1 | 9 | 8 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 41 | |
▷ Named functions | 37 | 90.24% |
▷ Anonymous functions | 4 | 9.76% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/3dpie.png | 8.24KB | 3.63KB | ▼ 55.98% |
asset/img/polar.png | 14.52KB | 6.79KB | ▼ 53.25% |
asset/img/line.png | 4.72KB | 2.64KB | ▼ 44.14% |
asset/img/pie.png | 7.82KB | 3.53KB | ▼ 54.79% |
asset/img/donut.png | 8.83KB | 3.97KB | ▼ 55.06% |