Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/wp-custom-slider/customslider.php+92
Undefined variable: jal_db_version
Server metrics [RAM: ▼1.23MB] [CPU: ▼40.10ms] Passed 4 tests
Server-side resources used by Wp custom slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.73 ▼0.72 | 15.32 ▼25.31 |
Dashboard /wp-admin | 2.78 ▼0.53 | 15.32 ▼36.80 |
Posts /wp-admin/edit.php | 2.78 ▼0.58 | 16.13 ▼28.04 |
Add New Post /wp-admin/post-new.php | 2.78 ▼3.11 | 15.60 ▼70.24 |
Media Library /wp-admin/upload.php | 2.78 ▼0.45 | 14.82 ▼15.91 |
custom slider /wp-admin/options-general.php?page=custom_slider | 2.78 | 15.49 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_customslider_settings |
wp_customslider_images |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
custom_slider_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
jal_db_version |
Browser metrics Passed 4 tests
Wp custom slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.22 ▼1.09 | 1.64 ▼0.42 | 40.48 ▼9.85 |
Dashboard /wp-admin | 2,210 ▲19 | 4.85 ▼0.03 | 109.17 ▲2.44 | 39.95 ▼3.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 39.45 ▲4.87 | 35.11 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 17.72 ▼0.02 | 597.16 ▼98.66 | 58.37 ▲4.30 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.02 | 92.59 ▼10.59 | 44.45 ▼2.49 |
custom slider /wp-admin/options-general.php?page=custom_slider | 1,024 | 2.03 | 37.88 | 54.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wp-custom-slider/customslider.php+138
Use of undefined constant custom_slider_DIR - assumed 'custom_slider_DIR' (this will throw an Error in a future version of PHP)
- Zombie tables detected upon uninstall: 2 tables
- wp_customslider_settings
- wp_customslider_images
- Zombie WordPress options were found after uninstall: 8 options
- db_upgraded
- widget_recent-posts
- jal_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- custom_slider_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=custom_slider
- > Warning in wp-content/plugins/wp-custom-slider/customslider.php+138
Use of undefined constant custom_slider_DIR - assumed 'custom_slider_DIR' (this will throw an Error in a future version of PHP)
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (assets/screenshot-1.png), #2 (assets/screenshot-3.png)
wp-custom-slider/customslider.php 92% from 13 tests
"Wp custom slider" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-custom-slider.php" instead of "customslider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected5,858 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,373 | 804 | 4,906 |
PHP | 4 | 287 | 349 | 952 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 3 | 10.71% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/play.png | 0.95KB | 1.00KB | 0.00% |
images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
images/right.png | 1.83KB | 1.74KB | ▼ 5.06% |
images/a11.png | 4.07KB | 2.49KB | ▼ 38.87% |
images/left.png | 1.81KB | 1.70KB | ▼ 6.19% |