Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.27MB] [CPU: ▲11.84ms] 75% from 4 tests
An overview of server-side resources used by Rolo Slider
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,337.76ms on /wp-admin/edit.php?post_type=rolo_slider&page=demo-data)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.22 | 50.06 ▲2.51 |
Dashboard /wp-admin | 4.59 ▲1.29 | 63.45 ▲16.98 |
Posts /wp-admin/edit.php | 4.62 ▲1.27 | 56.77 ▲8.04 |
Add New Post /wp-admin/post-new.php | 7.18 ▲1.30 | 120.81 ▲21.61 |
Media Library /wp-admin/upload.php | 4.51 ▲1.28 | 53.53 ▲19.81 |
Licenses /wp-admin/edit.php?post_type=rolo_slider&page=ed-licencing | 4.43 | 43.30 |
Import /wp-admin/edit.php?post_type=rolo_slider&page=import | 4.43 | 44.32 |
All Sliders /wp-admin/edit.php?post_type=rolo_slider | 4.56 | 48.06 |
Demo Data /wp-admin/edit.php?post_type=rolo_slider&page=demo-data | 4.51 | 1,337.76 |
Addons /wp-admin/edit.php?post_type=rolo_slider&page=addons | 4.43 | 42.28 |
About /wp-admin/edit.php?post_type=rolo_slider&page=about | 4.43 | 51.43 |
Add Slider /wp-admin/post-new.php?post_type=rolo_slider | 4.99 | 80.26 |
Export /wp-admin/edit.php?post_type=rolo_slider&page=export | 4.43 | 43.71 |
Server storage [IO: ▲3.31MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 136 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Rolo Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.36 ▼1.02 | 3.37 ▲1.42 | 37.85 ▲0.23 |
Dashboard /wp-admin | 2,283 ▲95 | 5.03 ▲0.18 | 101.69 ▼10.63 | 36.34 ▼7.36 |
Posts /wp-admin/edit.php | 2,169 ▲80 | 2.29 ▲0.30 | 41.86 ▲2.19 | 35.02 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,591 ▲48 | 18.56 ▼4.15 | 625.18 ▼18.46 | 50.80 ▼16.10 |
Media Library /wp-admin/upload.php | 1,468 ▲80 | 4.33 ▲0.08 | 98.37 ▼6.76 | 44.18 ▼3.56 |
Licenses /wp-admin/edit.php?post_type=rolo_slider&page=ed-licencing | 898 | 2.26 | 32.52 | 31.63 |
Import /wp-admin/edit.php?post_type=rolo_slider&page=import | 920 | 2.23 | 34.84 | 29.15 |
All Sliders /wp-admin/edit.php?post_type=rolo_slider | 1,149 | 2.45 | 35.97 | 27.83 |
Demo Data /wp-admin/edit.php?post_type=rolo_slider&page=demo-data | 909 | 2.20 | 29.61 | 39.28 |
Addons /wp-admin/edit.php?post_type=rolo_slider&page=addons | 1,001 | 2.20 | 30.87 | 52.92 |
About /wp-admin/edit.php?post_type=rolo_slider&page=about | 1,020 | 2.19 | 31.87 | 62.29 |
Add Slider /wp-admin/post-new.php?post_type=rolo_slider | 5,152 | 5.49 | 209.91 | 125.19 |
Export /wp-admin/edit.php?post_type=rolo_slider&page=export | 886 | 2.23 | 29.51 | 26.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
Please fix the following items
- 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function PressforeExporter\\add_action() in wp-content/plugins/rolo-slider/demo/demo-data.php:27
- > PHP Fatal error
Uncaught Error: Class 'RoloOptions\\Section' not found in wp-content/plugins/rolo-slider/options/sections/05.pagination.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/rolo-slider/cmb2/bootstrap.php:17
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/import.php' (include_path='.:/usr/share/php') in wp-content/plugins/rolo-slider/import/init.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/import.php): failed to open stream: No such file or directory in wp-content/plugins/rolo-slider/import/init.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rolo-slider/pages/addons.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rolo-slider/pages/dashboard.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function PressforeExporter\\add_action() in wp-content/plugins/rolo-slider/export/export-hooks.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rolo-slider/core/color-field.php:17
- > PHP Fatal error
Uncaught Error: Class 'RoloOptions\\Section' not found in wp-content/plugins/rolo-slider/options/sections/04.arrows.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 need to be fixed:
- Donate link: Invalid URI ("")
rolo-slider/init.php 92% from 13 tests
The main PHP script in "Rolo Slider" version 1.0.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("rolo-slider.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected14,717 lines of code in 82 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,721 | 3,113 | 6,766 |
CSS | 6 | 1,198 | 1,108 | 5,421 |
JavaScript | 8 | 241 | 144 | 1,168 |
Sass | 11 | 168 | 23 | 1,116 |
HTML | 1 | 35 | 1 | 246 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 22.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 144.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 1 | 2.33% |
▷ Concrete classes | 42 | 97.67% |
▷ Final classes | 0 | 0.00% |
Methods | 386 | |
▷ Static methods | 49 | 12.69% |
▷ Public methods | 372 | 96.37% |
▷ Protected methods | 11 | 2.85% |
▷ Private methods | 3 | 0.78% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
31 PNG files occupy 1.19MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
assets/images/default-layout.png | 5.87KB | 2.18KB | ▼ 62.93% |
assets/images/v_0.4_trans_captions.png | 25.18KB | 10.84KB | ▼ 56.94% |
assets/images/square.png | 0.44KB | 0.32KB | ▼ 28.16% |
assets/images/06-rolo-new-feature-code.png | 61.87KB | 15.47KB | ▼ 75.00% |