Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.70MB] [CPU: ▼1.09ms] 75% from 4 tests
This is a short check of server-side resources used by Wonder Slider Lite
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 1,041.39ms on /wp-admin/admin.php?page=wonderplugin_slider_overview)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.20 ▲0.73 | 39.37 ▼0.77 |
Dashboard /wp-admin | 4.05 ▲0.71 | 52.04 ▼10.46 |
Posts /wp-admin/edit.php | 4.10 ▲0.75 | 55.88 ▲9.28 |
Add New Post /wp-admin/post-new.php | 6.57 ▲0.69 | 99.06 ▼2.41 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 43.02 ▲9.28 |
Settings /wp-admin/admin.php?page=wonderplugin_slider_edit_settings | 3.90 | 40.88 |
Edit Slider /wp-admin/admin.php?page=wonderplugin_slider_edit_item | 3.90 | 43.04 |
New Slider /wp-admin/admin.php?page=wonderplugin_slider_add_new | 3.91 | 45.58 |
View Slider /wp-admin/admin.php?page=wonderplugin_slider_show_item | 3.90 | 39.97 |
Manage Sliders /wp-admin/admin.php?page=wonderplugin_slider_show_items | 3.92 | 53.95 |
Overview /wp-admin/admin.php?page=wonderplugin_slider_overview | 5.02 | 1,041.39 |
Tools /wp-admin/admin.php?page=wonderplugin_slider_import_export | 4.20 | 50.69 |
Server storage [IO: ▲2.98MB] [DB: ▲0.03MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_wonderplugin_slider |
New WordPress options |
---|
theysaidso_admin_options |
wonderplugin_slider_initd |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
wonderplugin_slider_userrole |
wonderplugin_slider_thumbnailsize |
wonderplugin-slider-engine |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wonder Slider Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲166 | 13.88 ▼0.39 | 9.56 ▲7.83 | 39.58 ▼3.58 |
Dashboard /wp-admin | 2,233 ▲56 | 5.50 ▼0.04 | 94.18 ▼7.34 | 74.66 ▲27.12 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 1.97 ▲0.02 | 39.30 ▼2.59 | 36.02 ▼0.17 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,869 | 28.62 ▲5.30 | 842.43 ▲211.17 | 35.72 ▼28.58 |
Media Library /wp-admin/upload.php | 1,438 ▲44 | 4.16 ▲0.03 | 95.00 ▼0.12 | 77.20 ▲36.59 |
Settings /wp-admin/admin.php?page=wonderplugin_slider_edit_settings | 1,245 | 4.00 | 71.77 | 80.61 |
Edit Slider /wp-admin/admin.php?page=wonderplugin_slider_edit_item | 1,038 | 3.80 | 63.43 | 82.04 |
New Slider /wp-admin/admin.php?page=wonderplugin_slider_add_new | 5,925 | 4.67 | 90.92 | 140.54 |
View Slider /wp-admin/admin.php?page=wonderplugin_slider_show_item | 1,041 | 3.83 | 57.84 | 73.97 |
Manage Sliders /wp-admin/admin.php?page=wonderplugin_slider_show_items | 1,200 | 3.83 | 61.50 | 88.09 |
Overview /wp-admin/admin.php?page=wonderplugin_slider_overview | 1,339 | 4.18 | 65.98 | 79.90 |
Tools /wp-admin/admin.php?page=wonderplugin_slider_import_export | 6,609 | 4.32 | 79.30 | 76.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_wonderplugin_slider
- This plugin does not fully uninstall, leaving 10 options in the database
- wonderplugin-slider-engine
- wonderplugin_slider_thumbnailsize
- wonderplugin_slider_initd
- db_upgraded
- wonderplugin_slider_userrole
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
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
These attributes need your attention:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
wonderplugin-slider-lite/wonderpluginslider.php 92% from 13 tests
Analyzing the main PHP file in "Wonder Slider Lite" version 13.9
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wonderplugin-slider-lite.php" instead of "wonderpluginslider.php")
Code Analysis 97% from 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
There were no executable files found in this plugin8,490 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 843 | 47 | 4,422 |
CSS | 8 | 189 | 68 | 1,694 |
JavaScript | 6 | 214 | 332 | 1,433 |
HTML | 1 | 9 | 1 | 444 |
JSON | 1 | 0 | 0 | 418 |
SVG | 1 | 67 | 0 | 79 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 171)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 108.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 383.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 171.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 119 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 119 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 6 | |
▷ Global constants | 6 | 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
130 PNG files occupy 0.37MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
engine/carouselarrows-32-32-5.png | 0.43KB | 0.22KB | ▼ 49.08% |
engine/bullet-6-6-0.png | 0.20KB | 0.27KB | 0.00% |
engine/bottomshadow-110-95-1.png | 30.59KB | 9.35KB | ▼ 69.45% |
engine/navplaypause-64-64-0.png | 3.28KB | 2.43KB | ▼ 25.74% |
engine/bullet-20-20-2.png | 0.43KB | 0.33KB | ▼ 21.97% |