Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.85MB] [CPU: ▼176.90ms] Passed 4 tests
This is a short check of server-side resources used by CC Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.09 | 33.27 ▼1.06 |
Dashboard /wp-admin | 2.80 ▼0.25 | 22.20 ▼24.95 |
Posts /wp-admin/edit.php | 2.80 ▼0.31 | 18.19 ▼25.41 |
Add New Post /wp-admin/post-new.php | 2.80 ▼2.63 | 19.80 ▼628.84 |
Media Library /wp-admin/upload.php | 2.80 ▼0.21 | 24.71 ▼28.39 |
Add New /wp-admin/post-new.php?post_type=cc-slider | 2.80 | 20.92 |
All Sliders /wp-admin/edit.php?post_type=cc-slider | 2.80 | 23.35 |
CC Slider /wp-admin/options-general.php?page=cc-slider | 2.80 | 17.99 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for CC Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,876 ▲280 | 16.52 ▲1.06 | 13.17 ▲4.70 | 55.71 ▲6.16 |
Dashboard /wp-admin | 3,040 ▲106 | 6.55 ▲0.65 | 140.73 ▼1.03 | 110.53 ▼9.80 |
Posts /wp-admin/edit.php | 2,809 ▲70 | 2.99 ▲0.30 | 67.01 ▲1.02 | 98.96 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,717 ▲34 | 19.03 ▲0.28 | 393.25 ▲14.73 | 107.45 ▼3.15 |
Media Library /wp-admin/upload.php | 1,818 ▲11 | 5.35 ▲0.33 | 152.89 ▼39.76 | 114.51 ▼26.36 |
Add New /wp-admin/post-new.php?post_type=cc-slider | 3,027 | 9.15 | 229.24 | 144.37 |
All Sliders /wp-admin/edit.php?post_type=cc-slider | 1,481 | 2.70 | 60.64 | 92.61 |
CC Slider /wp-admin/options-general.php?page=cc-slider | 2,259 | 3.31 | 92.02 | 96.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cc-slider
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cc-slider/assets/php/dynamic.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Donate link: Invalid URI found ("")
cc-slider/ws-slider.php 85% from 13 tests
"CC Slider" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 181 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-slider.php" instead of "ws-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin6,588 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 615 | 83 | 4,827 |
JavaScript | 3 | 209 | 18 | 1,338 |
PHP | 4 | 95 | 125 | 423 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 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 | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/arrows.png | 1.63KB | 0.51KB | ▼ 68.61% |