Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.17ms] Passed 4 tests
A check of server-side resources used by bSlider - WP Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.00 ▼11.04 |
Dashboard /wp-admin | 3.34 ▲0.03 | 52.31 ▲2.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.93 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.25 ▼9.93 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.67 ▲1.38 |
bSlider /wp-admin/options-general.php?page=bslider-main-menu | 3.23 | 30.81 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
bslider |
Browser metrics Passed 4 tests
Checking browser requirements for bSlider - WP Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲100 | 13.72 ▼0.66 | 1.97 ▲0.24 | 45.74 ▼9.65 |
Dashboard /wp-admin | 2,215 ▲27 | 4.86 ▼0.92 | 102.19 ▼16.73 | 37.38 ▼22.48 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.06 ▲0.03 | 35.36 ▼3.21 | 37.23 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,535 ▼2 | 23.33 ▲0.30 | 591.09 ▼47.42 | 90.75 ▲28.73 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.31 ▲0.05 | 99.43 ▼5.72 | 41.41 ▼2.73 |
bSlider /wp-admin/options-general.php?page=bslider-main-menu | 838 | 2.03 | 27.57 | 25.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- bslider
- 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 | 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bslider/bSlider/bSlider.php:20
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Demo), #2 (Settings)
bslider/index.php 92% from 13 tests
Analyzing the main PHP file in "bSlider - WP Slider" version 1.1
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bslider.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin371 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 5 | 0 | 179 |
PHP | 2 | 4 | 22 | 152 |
JavaScript | 1 | 3 | 0 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.68MB with 0.44MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 672.99KB | 176.35KB | ▼ 73.80% |
screenshot-2.png | 18.86KB | 8.18KB | ▼ 56.61% |
bSlider/images/32.png | 4.88KB | 1.76KB | ▼ 64.03% |