Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.35MB] [CPU: ▲2.46ms] Passed 4 tests
An overview of server-side resources used by B Laser Loader - Smooth page loading progress bar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.87 ▲1.40 | 46.30 ▲3.92 |
Dashboard /wp-admin | 4.70 ▲1.35 | 59.03 ▼3.39 |
Posts /wp-admin/edit.php | 4.75 ▲1.39 | 61.32 ▲12.21 |
Add New Post /wp-admin/post-new.php | 7.22 ▲1.33 | 98.81 ▼2.92 |
Media Library /wp-admin/upload.php | 4.56 ▲1.33 | 51.70 ▲16.37 |
B Laser /wp-admin/tools.php?page=blaser | 4.56 | 53.85 |
Server storage [IO: ▲1.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 160 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_wpll |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for B Laser Loader - Smooth page loading progress bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,253 ▲507 | 13.59 ▼1.16 | 6.27 ▲4.59 | 39.62 ▼4.00 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼0.02 | 99.51 ▼5.65 | 38.84 ▼3.91 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▲0.04 | 40.18 ▼2.25 | 36.42 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.38 ▲5.26 | 669.12 ▲44.06 | 57.79 ▲6.74 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.12 | 96.73 ▼1.98 | 43.98 ▼0.85 |
B Laser /wp-admin/tools.php?page=blaser | 1,268 | 4.30 | 68.47 | 42.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- _wpll
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b-laser/b-laser-loader.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please describe screenshot #1 in b-laser/assets to your readme.txt
b-laser/b-laser-loader.php 92% from 13 tests
The principal PHP file in "B Laser Loader - Smooth page loading progress bar" v. 1.5.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("b-laser.php" instead of "b-laser-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected33,105 lines of code in 134 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 3,333 | 1,431 | 14,049 |
PO File | 20 | 3,037 | 3,414 | 6,180 |
Sass | 15 | 952 | 3 | 4,811 |
CSS | 5 | 283 | 479 | 4,099 |
JavaScript | 6 | 1,247 | 348 | 3,964 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 25.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 61 | |
▷ Abstract classes | 2 | 3.28% |
▷ Concrete classes | 59 | 96.72% |
▷ Final classes | 0 | 0.00% |
Methods | 253 | |
▷ Static methods | 41 | 16.21% |
▷ Public methods | 253 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and 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 |
admin/framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |