Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼296.75ms] Passed 4 tests
Server-side resources used by Clove Image Slider
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 57.86 ▼17.19 |
Dashboard /wp-admin | 3.59 ▲0.18 | 88.84 ▲54.46 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 39.57 ▲2.59 |
Add New Post /wp-admin/post-new.php | 7.05 ▲0.09 | 93.98 ▼1,175.03 |
Media Library /wp-admin/upload.php | 3.46 ▲0.17 | 31.57 ▲2.64 |
Add New Image Slider /wp-admin/post-new.php?post_type=ccis_slider | 4.42 | 50.17 |
All Image Sliders /wp-admin/edit.php?post_type=ccis_slider | 3.56 | 27.91 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Clove Image Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,819 ▲65 | 15.63 ▲0.37 | 6.08 ▲0.03 | 3.55 ▲1.06 |
Dashboard /wp-admin | 2,912 ▲59 | 6.09 ▼0.03 | 124.50 ▼23.74 | 163.76 ▼7.50 |
Posts /wp-admin/edit.php | 2,722 ▲34 | 3.23 ▲0.00 | 67.58 ▲4.13 | 193.01 ▲51.36 |
Add New Post /wp-admin/post-new.php | 1,804 ▲143 | 17.14 ▲0.66 | 465.83 ▲32.71 | 166.74 ▲4.33 |
Media Library /wp-admin/upload.php | 1,726 ▲25 | 5.53 ▲0.06 | 140.45 ▼27.60 | 196.30 ▼2.50 |
Add New Image Slider /wp-admin/post-new.php?post_type=ccis_slider | 13,936 | 12.64 | 322.04 | 278.59 |
All Image Sliders /wp-admin/edit.php?post_type=ccis_slider | 1,431 | 3.16 | 61.44 | 120.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: slider, image slider, fancybox
clove-image-slider/clove-image-slider.php 92% from 13 tests
The entry point to "Clove Image Slider" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin13,365 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,011 | 1,046 | 7,935 |
PHP | 19 | 468 | 30 | 4,371 |
CSS | 10 | 71 | 50 | 1,050 |
SVG | 1 | 0 | 1 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 169)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 32.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 174.00 |
Average method complexity | 10.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 169.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 20 | |
▷ Static methods | 18 | 90.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/up.png | 6.22KB | 1.05KB | ▼ 83.16% |