Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼7.45ms] Passed 4 tests
Analyzing server-side resources used by WP Before After Image Slider – Advanced Image comparison Plugin for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 38.72 ▼2.49 |
Dashboard /wp-admin | 3.53 ▲0.18 | 47.65 ▼15.47 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 50.53 ▼0.51 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 86.55 ▼11.33 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 40.44 ▲6.70 |
Add New /wp-admin/post-new.php?post_type=coca_bais | 3.53 | 51.85 |
All Sliders /wp-admin/edit.php?post_type=coca_bais | 3.50 | 38.70 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 8 new options
New WordPress options |
---|
coca_bais_version |
db_upgraded |
can_compress_scripts |
coca_bais_installed |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Before After Image Slider – Advanced Image comparison Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲79 | 14.34 ▲0.10 | 1.73 ▲0.03 | 38.40 ▼6.69 |
Dashboard /wp-admin | 2,226 ▲52 | 5.59 ▼0.07 | 91.32 ▼7.90 | 41.03 ▼7.56 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.03 ▼0.00 | 38.29 ▲0.69 | 37.50 ▲2.43 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 25.15 ▲2.12 | 653.20 ▲41.14 | 70.85 ▲16.17 |
Media Library /wp-admin/upload.php | 1,435 ▲44 | 4.21 ▼0.04 | 95.33 ▼6.50 | 41.51 ▼0.02 |
Add New /wp-admin/post-new.php?post_type=coca_bais | 1,823 | 8.58 | 224.58 | 43.66 |
All Sliders /wp-admin/edit.php?post_type=coca_bais | 1,120 | 1.90 | 30.70 | 29.29 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- coca_bais_version
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- coca_bais_installed
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: comparison, image, after, before, slider
wp-before-after-image-slider/wp-before-after-image-slider.php 92% from 13 tests
The principal PHP file in "WP Before After Image Slider – Advanced Image comparison Plugin for WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 178 characters long)
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
Success! There were no dangerous files found in this plugin1,175 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 201 | 544 | 1,159 |
JavaScript | 10 | 0 | 0 | 10 |
CSS | 6 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 12.29 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 48 | |
▷ Static methods | 9 | 18.75% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 2 | 4.17% |
▷ Private methods | 4 | 8.33% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/lib/images/3.png | 3.08KB | 3.07KB | 0.22% |
assets/lib/images/Vertical.png | 0.17KB | 0.17KB | 0.00% |
assets/lib/images/2.png | 3.04KB | 3.27KB | 0.00% |
assets/lib/images/logo.png | 2.05KB | 2.04KB | 0.14% |
assets/lib/images/6.png | 4.67KB | 4.63KB | ▼ 0.82% |