Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.71MB] [CPU: ▼129.78ms] Passed 4 tests
This is a short check of server-side resources used by B Chart - The Chart Plugin for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.96 | 41.52 ▲20.75 |
Dashboard /wp-admin | 3.79 ▲0.73 | 52.11 ▲13.34 |
Posts /wp-admin/edit.php | 3.84 ▲0.73 | 51.66 ▲9.89 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.67 | 100.55 ▼549.61 |
Media Library /wp-admin/upload.php | 3.73 ▲0.73 | 41.34 ▲7.26 |
Add New /wp-admin/post-new.php?post_type=bchart | 3.93 | 56.88 |
All Charts /wp-admin/edit.php?post_type=bchart | 3.94 | 46.90 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 152 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for B Chart - The Chart Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,754 ▲158 | 16.41 ▲0.85 | 11.36 ▲3.09 | 46.99 ▼0.76 |
Dashboard /wp-admin | 3,012 ▲78 | 5.89 ▼0.04 | 133.44 ▼11.86 | 112.87 ▼4.19 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.70 ▲0.01 | 68.28 ▲2.74 | 89.68 ▲3.94 |
Add New Post /wp-admin/post-new.php | 1,720 ▼152 | 18.97 ▼0.16 | 370.56 ▲5.88 | 106.94 ▼5.79 |
Media Library /wp-admin/upload.php | 1,849 ▲39 | 5.03 ▼0.01 | 156.72 ▲15.02 | 120.68 ▼2.55 |
Add New /wp-admin/post-new.php?post_type=bchart | 4,250 | 5.68 | 182.21 | 185.29 |
All Charts /wp-admin/edit.php?post_type=bchart | 1,727 | 4.73 | 88.92 | 74.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Please describe screenshot #9 in b-chart/assets to your readme.txt
b-chart/bchart.php 92% from 13 tests
The main file in "B Chart - The Chart Plugin for WordPress" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 ("b-chart.php" instead of "bchart.php")
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 detected26,897 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 2,332 | 954 | 7,349 |
PO File | 20 | 3,197 | 3,594 | 6,490 |
Sass | 15 | 952 | 3 | 4,803 |
JavaScript | 7 | 1,268 | 363 | 4,156 |
CSS | 7 | 282 | 479 | 4,097 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 24.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 6.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 2 | 3.45% |
▷ Concrete classes | 56 | 96.55% |
▷ Final classes | 0 | 0.00% |
Methods | 233 | |
▷ Static methods | 40 | 17.17% |
▷ Public methods | 233 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/codestar/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |