Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.38MB] [CPU: ▲28.04ms] 75% from 4 tests
This is a short check of server-side resources used by Carousel, Recent Post Slider and Banner Slider
Please have a look at the following items
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.38MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.16 ▲5.70 | 62.09 ▲22.82 |
Dashboard /wp-admin | 9.18 ▲5.88 | 87.27 ▲37.55 |
Posts /wp-admin/edit.php | 9.19 ▲5.83 | 85.49 ▲38.70 |
Add New Post /wp-admin/post-new.php | 10.01 ▲4.12 | 121.90 ▲25.72 |
Media Library /wp-admin/upload.php | 9.18 ▲5.96 | 63.07 ▲26.06 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.18 | 63.91 |
Server storage [IO: ▲8.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 252 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
fs_accounts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
fs_active_plugins |
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
Browser metrics Passed 4 tests
Checking browser requirements for Carousel, Recent Post Slider and Banner Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,113 ▲352 | 15.85 ▲1.43 | 6.04 ▲4.47 | 76.95 ▲38.53 |
Dashboard /wp-admin | 2,402 ▲224 | 6.81 ▲1.17 | 122.05 ▲23.97 | 43.75 ▼0.14 |
Posts /wp-admin/edit.php | 2,331 ▲231 | 3.81 ▲1.83 | 57.98 ▲22.84 | 37.00 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,587 ▲61 | 18.34 ▼5.39 | 602.39 ▼89.04 | 44.86 ▼6.63 |
Media Library /wp-admin/upload.php | 1,470 ▲67 | 4.65 ▲0.48 | 81.28 ▼15.22 | 48.03 ▲4.27 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,293 | 3.52 | 46.80 | 27.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/spice-post-slider/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- fs_debug_mode
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- fs_accounts
- widget_recent-posts
- widget_theysaidso_widget
- fs_active_plugins
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/spice-post-slider/include/view/shortcode.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/spice-post-slider/include/view/banner-post-slider.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/spice-post-slider/include/admin/sps-meta-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/spice-post-slider/include/admin/sps-shortcode-generator.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spice-post-slider/include/admin/sps-cpt.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/spice-post-slider/include/admin/sps-about-page.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/spice-post-slider/include/view/video-slider.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spice-post-slider/include/admin/sps-fonts.php:23
- > 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 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Preview page), #2 (General setting page), #3 (Navigation setting page), #4 (Typography setting page), #5 (Color setting page), #6 (Add shortcode page)
spice-post-slider/spice-post-slider.php 92% from 13 tests
"Carousel, Recent Post Slider and Banner Slider" version 2.0.1'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:
- Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected55,351 lines of code in 161 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 126 | 8,056 | 17,282 | 34,633 |
SVG | 3 | 0 | 0 | 9,552 |
JavaScript | 9 | 1,271 | 408 | 5,872 |
CSS | 22 | 1,664 | 71 | 5,080 |
Markdown | 1 | 68 | 0 | 214 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 89.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 2 | 4.00% |
▷ Concrete classes | 48 | 96.00% |
▷ Final classes | 1 | 2.08% |
Methods | 1,273 | |
▷ Static methods | 197 | 15.48% |
▷ Public methods | 884 | 69.44% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 372 | 29.22% |
Functions | 105 | |
▷ Named functions | 105 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 148 | |
▷ Global constants | 101 | 68.24% |
▷ Class constants | 47 | 31.76% |
▷ Public constants | 47 | 100.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
27 compressed PNG files occupy 0.54MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/6.png | 22.48KB | 23.47KB | 0.00% |
assets/img/7.png | 18.33KB | 19.30KB | 0.00% |
assets/img/b-11.png | 26.23KB | 27.11KB | 0.00% |
assets/img/2.png | 15.13KB | 15.50KB | 0.00% |
assets/img/b-5.png | 21.42KB | 22.54KB | 0.00% |