Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼0.20ms] Passed 4 tests
Analyzing server-side resources used by DoBar - A Beautiful Loading Bar for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 40.47 ▲0.14 |
Dashboard /wp-admin | 3.46 ▲0.15 | 53.57 ▲5.56 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.53 ▲4.92 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 98.86 ▼6.85 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 40.45 ▲0.97 |
DoBar /wp-admin/options-general.php?page=dobar | 3.37 | 46.95 |
Server storage [IO: ▲1.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 191 new files
Database: no new tables, 13 new options
New WordPress options |
---|
dobar.style |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
dobar.inline |
dobar.color |
can_compress_scripts |
dobar.frontend |
widget_recent-posts |
dobar.backend |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DoBar - A Beautiful Loading Bar for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 14.74 ▼0.01 | 8.65 ▲6.81 | 39.71 ▼4.30 |
Dashboard /wp-admin | 2,214 ▲37 | 5.78 ▲0.23 | 90.11 ▼1.03 | 39.77 ▼4.26 |
Posts /wp-admin/edit.php | 2,122 ▲25 | 2.27 ▲0.21 | 46.44 ▲10.12 | 37.77 ▲5.22 |
Add New Post /wp-admin/post-new.php | 1,554 ▲9 | 23.35 ▲0.28 | 692.31 ▲3.58 | 54.50 ▼2.25 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.36 ▲0.15 | 111.01 ▼7.39 | 43.77 ▼4.25 |
DoBar /wp-admin/options-general.php?page=dobar | 1,846 | 5.53 | 85.06 | 74.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 13 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- dobar.backend
- widget_theysaidso_widget
- dobar.auto_upgrade
- dobar.frontend
- dobar._ver
- widget_recent-posts
- dobar.color
- ...
Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test
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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: progress bar, loader, page loading, loading process bar, loading screen
dobar/dobar.php Passed 13 tests
The main PHP script in "DoBar - A Beautiful Loading Bar for WordPress" version 1.2 is automatically included on every request by WordPress
34 characters long description:
WordPress page loading process bar
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin17,593 lines of code in 186 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 168 | 1,595 | 288 | 15,877 |
JavaScript | 3 | 124 | 23 | 920 |
PHP | 15 | 206 | 381 | 796 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 1 | 9.09% |
▷ Concrete classes | 10 | 90.91% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 25 | 48.08% |
▷ Public methods | 44 | 84.62% |
▷ Protected methods | 1 | 1.92% |
▷ Private methods | 7 | 13.46% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 4 | 25.00% |
▷ Class constants | 12 | 75.00% |
▷ Public constants | 12 | 100.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
3 PNG files occupy 0.34MB with 0.25MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wp_assets/screenshot-1.png | 212.17KB | 56.24KB | ▼ 73.50% |
wp_assets/screenshot-2.png | 128.19KB | 36.99KB | ▼ 71.15% |
wp_assets/icon-256x256.png | 8.27KB | 1.92KB | ▼ 76.83% |