Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/cyber-new-slider/classes/class.cs.widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Cyberslider_Widgets has a deprecated constructor
Server metrics [RAM: ▼1.25MB] [CPU: ▼54.79ms] Passed 4 tests
This is a short check of server-side resources used by Cyber Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.72 | 8.11 ▼36.99 |
Dashboard /wp-admin | 2.76 ▼0.58 | 10.33 ▼52.29 |
Posts /wp-admin/edit.php | 2.76 ▼0.59 | 9.18 ▼45.23 |
Add New Post /wp-admin/post-new.php | 2.76 ▼3.12 | 8.83 ▼84.66 |
Media Library /wp-admin/upload.php | 2.76 ▼0.46 | 9.23 ▼24.74 |
Cyber Slider /wp-admin/admin.php?page=cyber-slider | 2.76 | 10.39 |
Global Settings /wp-admin/admin.php?page=cyber-slider-global | 2.76 | 9.28 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 47 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_cyberslider_slides |
wp_cyberslider |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_cyberslider_widgets |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Cyber Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,160 ▲414 | 16.24 ▲1.86 | 7.72 ▲6.13 | 48.83 ▲9.58 |
Dashboard /wp-admin | 2,417 ▲226 | 7.15 ▲1.25 | 147.48 ▲42.11 | 101.24 ▲62.37 |
Posts /wp-admin/edit.php | 2,346 ▲257 | 3.66 ▲1.61 | 69.82 ▲33.91 | 73.09 ▲37.27 |
Add New Post /wp-admin/post-new.php | 1,601 ▲68 | 23.42 ▲0.20 | 653.66 ▼47.10 | 42.45 ▼23.50 |
Media Library /wp-admin/upload.php | 1,482 ▲94 | 4.88 ▲0.65 | 91.41 ▼15.26 | 103.86 ▲56.68 |
Cyber Slider /wp-admin/admin.php?page=cyber-slider | 1,118 | 3.67 | 56.92 | 72.19 |
Global Settings /wp-admin/admin.php?page=cyber-slider-global | 1,146 | 3.65 | 42.16 | 67.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/cyber-new-slider/classes/class.cs.widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Cyberslider_Widgets has a deprecated constructor
- Zombie tables were found after uninstall: 2 tables
- wp_cyberslider
- wp_cyberslider_slides
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_cyberslider_widgets
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > Deprecated in wp-content/plugins/cyber-new-slider/classes/class.cs.widget.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Cyberslider_Widgets has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > Deprecated in wp-content/plugins/cyber-new-slider/classes/class.cs.widget.php+103
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Cyberslider_Widgets is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/admin.php?page=cyber-slider
- > Notice in wp-content/plugins/cyber-new-slider/includes/inc_php/menus.php+10
Undefined index: action
- > GET request to /wp-admin/admin.php?page=cyber-slider
- > Notice in wp-content/plugins/cyber-new-slider/includes/inc_php/menus.php+25
Undefined index: status
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > Notice in wp-content/plugins/cyber-new-slider/includes/inc_php/menus.php+131
unserialize(): Error at offset 0 of 1 bytes
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > Notice in wp-content/plugins/cyber-new-slider/includes/inc_php/menus.php+179
Trying to access array offset on value of type bool
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
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyber-new-slider/includes/inc_php/dynamic-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cyber-new-slider/includes/inc_php/ajax-backend-functions.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyber-new-slider/includes/inc_php/menus.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cyber-new-slider/classes/class.cs.widget.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cyber-new-slider/includes/inc_php/activation.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyber-new-slider/classes/class.cs.tiny.mce.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyber-new-slider/includes/inc_php/scripts.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cyber-new-slider/includes/inc_php/shortcode.php:389
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cyber-slider-global
- > Javascript (severe) in unknown
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Shortcode usage for the slider.), #2 (Fo more detail please have a look on the documenation page HERE. .), #3 (Cyber Slider thumbnail settings.), #4 (Created sliders overview.), #5 (Adding new slider.)
- Donate link: Please fix this invalid URI: ""
cyber-new-slider/cyber-slider.php 85% from 13 tests
"Cyber Slider" version 1.1'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:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("cyber-new-slider.php" instead of "cyber-slider.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
There were no executable files found in this plugin8,111 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 626 | 53 | 3,438 |
PHP | 9 | 481 | 227 | 2,552 |
JavaScript | 8 | 563 | 197 | 2,121 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ 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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.37MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu_icon.png | 1.81KB | 0.90KB | ▼ 50.27% |
images/arrows_prev.png | 3.21KB | 2.46KB | ▼ 23.39% |
images/next.png | 0.25KB | 0.18KB | ▼ 28.40% |
screenshot-5.png | 64.91KB | 23.80KB | ▼ 63.34% |
screenshot-4.png | 78.28KB | 29.26KB | ▼ 62.62% |