Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.72ms] Passed 4 tests
Server-side resources used by BH Custom Preloader
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.15 ▲3.62 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.18 ▲2.88 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.37 ▲0.43 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 80.95 ▼9.81 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 40.75 ▲9.72 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 3.45 | 36.56 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 187 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
bh_preloader |
Browser metrics Passed 4 tests
Checking browser requirements for BH Custom Preloader
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,009 ▲248 | 13.53 ▼0.79 | 13.28 ▲11.27 | 47.12 ▲8.86 |
Dashboard /wp-admin | 2,253 ▲76 | 5.62 ▼0.06 | 86.88 ▲0.27 | 41.02 ▲0.10 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.01 ▲0.05 | 35.11 ▼2.06 | 30.91 ▼6.50 |
Add New Post /wp-admin/post-new.php | 1,568 ▲40 | 23.35 ▲0.32 | 624.85 ▼34.36 | 51.24 ▼14.43 |
Media Library /wp-admin/upload.php | 1,452 ▲55 | 4.28 ▲0.16 | 95.92 ▼4.81 | 42.71 ▲0.35 |
Preloader /wp-admin/admin.php?page=bh-preloader#tab=preloader | 1,630 | 4.24 | 76.27 | 95.89 |
CSS3 Preloader Options /wp-admin/admin.php?page=bh-preloader#tab=css3-preloader-options | 1,348 | 3.75 | 50.08 | 99.26 |
Image Preloader Options /wp-admin/admin.php?page=bh-preloader#tab=image-preloader-options | 1,348 | 3.75 | 50.61 | 114.46 |
Codestar Framework /wp-admin/tools.php?page=csf-welcome | 1,476 | 3.46 | 41.80 | 49.24 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- bh_preloader
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/bh-custom-preloader/functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/bh-custom-preloader/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bh-custom-preloader/preloader.php:70
- > PHP Warning
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png)
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Donate link: Invalid URI ("")
bh-custom-preloader/plugin_main.php 92% from 13 tests
"BH Custom Preloader" version 1.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("bh-custom-preloader.php" instead of "plugin_main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin16,877 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 2,235 | 1,006 | 9,908 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Markdown | 2 | 85 | 0 | 379 |
CSS | 3 | 6 | 7 | 68 |
JavaScript | 4 | 1 | 7 | 20 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 20.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 31 | 16.94% |
▷ Public methods | 183 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
33 PNG files occupy 0.20MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/preview/21.png | 2.25KB | 1.47KB | ▼ 34.43% |
img/preview/13.png | 1.34KB | 0.50KB | ▼ 62.57% |
img/preview/6.png | 2.02KB | 1.05KB | ▼ 47.72% |
img/preview/19.png | 1.72KB | 0.82KB | ▼ 52.24% |
screenshot-2.png | 18.10KB | 2.89KB | ▼ 84.01% |