Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.53ms] Passed 4 tests
A check of server-side resources used by CP Responsive Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.45 ▲0.21 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.22 ▼4.09 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 42.94 ▼8.75 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 81.55 ▼13.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 36.20 ▲2.19 |
CP Sliders /wp-admin/edit.php?post_type=coderperson-items | 3.33 | 37.22 |
Add New /wp-admin/post-new.php?post_type=coderperson-items | 3.41 | 47.02 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=coderperson-items | 3.27 | 38.08 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=coderperson-items | 3.27 | 31.85 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
category_children |
Browser metrics Passed 4 tests
This is an overview of browser requirements for CP Responsive Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲198 | 14.04 ▼0.54 | 12.26 ▲10.58 | 43.81 ▲4.43 |
Dashboard /wp-admin | 2,252 ▲64 | 5.95 ▲1.05 | 104.39 ▲2.25 | 41.25 ▼5.42 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.10 ▲0.07 | 35.21 ▼1.17 | 31.49 ▼2.40 |
Add New Post /wp-admin/post-new.php | 1,551 ▲15 | 23.47 ▲0.07 | 678.12 ▲2.23 | 59.65 ▼1.27 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.28 ▲0.02 | 99.49 ▼0.20 | 41.99 ▼4.39 |
CP Sliders /wp-admin/edit.php?post_type=coderperson-items | 1,151 | 2.03 | 31.66 | 28.63 |
Add New /wp-admin/post-new.php?post_type=coderperson-items | 2,382 | 7.96 | 189.15 | 69.75 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=coderperson-items | 1,489 | 2.24 | 27.27 | 31.55 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=coderperson-items | 1,350 | 2.26 | 25.84 | 30.30 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- category_children
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cp-responsive-slider/coderperson-index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is not present
- Screenshots: Add images for these screenshots: #1 (How to use shortcode in editor.), #2 (Another demo.)
cp-responsive-slider/coderperson-index.php 85% from 13 tests
This is the main PHP file of "CP Responsive Slider" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 369 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cp-responsive-slider.php" instead of "coderperson-index.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected5,003 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,305 | 746 | 4,774 |
PHP | 1 | 47 | 34 | 161 |
CSS | 1 | 4 | 16 | 68 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/a02.png | 5.63KB | 3.45KB | ▼ 38.77% |
js/browser-icons.png | 11.15KB | 3.93KB | ▼ 64.73% |