Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲5.09MB] [CPU: ▲25.89ms] 50% from 4 tests
A check of server-side resources used by WordPress Slider Block Gutenslider
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 2,184.63ms on /wp-admin/options-general.php?page=settings-page-gutenslider)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.09MB on /wp-admin/options-general.php?page=settings-page-gutenslider)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.93 ▲5.47 | 74.53 ▲34.94 |
Dashboard /wp-admin | 8.95 ▲5.60 | 73.37 ▲12.71 |
Posts /wp-admin/edit.php | 8.95 ▲5.59 | 84.57 ▲36.82 |
Add New Post /wp-admin/post-new.php | 9.59 ▲3.71 | 112.05 ▲19.07 |
Media Library /wp-admin/upload.php | 8.95 ▲5.72 | 79.03 ▲38.32 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 8.95 | 63.91 |
Gutenslider /wp-admin/options-general.php?page=settings-page-gutenslider | 8.95 | 2,184.63 |
Server storage [IO: ▲7.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 292 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
fs_debug_mode |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_accounts |
db_upgraded |
fs_active_plugins |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress Slider Block Gutenslider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲77 | 14.19 ▼0.15 | 1.72 ▲0.02 | 31.03 ▼13.16 |
Dashboard /wp-admin | 2,210 ▲36 | 5.62 ▼0.06 | 93.38 ▼6.55 | 43.94 ▼1.83 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.01 ▲0.05 | 41.34 ▲4.03 | 40.10 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,666 ▲226 | 20.55 ▲2.91 | 651.24 ▼84.59 | 56.48 ▲7.52 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.17 ▼0.03 | 97.62 ▼18.72 | 46.37 ▼2.56 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,092 | 1.65 | 29.76 | 30.48 |
Gutenslider /wp-admin/options-general.php?page=settings-page-gutenslider | 983 | 1.68 | 26.37 | 49.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/gutenslider/freemius/includes/class-freemius.php+8546
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 9 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- fs_active_plugins
- db_upgraded
- fs_accounts
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/gutenslider/src/blocks/gutenslider/attributes.php:507
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/gutenslider/includes/admin/partials/view.php:11
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: content slider, responsive, slider, media slider, wordpress slider...
gutenslider/eedee-gutenslider.php 85% from 13 tests
The main PHP script in "WordPress Slider Block Gutenslider" version 6.1.0 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 ("gutenslider.php" instead of "eedee-gutenslider.php")
- Description: The description should be shorter than 140 characters (currently 168 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin38,764 lines of code in 212 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 132 | 8,246 | 17,604 | 35,336 |
JavaScript | 37 | 92 | 169 | 1,405 |
SVG | 5 | 1 | 2 | 705 |
Markdown | 1 | 373 | 0 | 579 |
JSON | 1 | 0 | 0 | 548 |
Sass | 1 | 24 | 9 | 149 |
CSS | 35 | 1 | 0 | 42 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 84.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 1 | 1.96% |
Methods | 1,293 | |
▷ Static methods | 200 | 15.47% |
▷ Public methods | 889 | 68.75% |
▷ Protected methods | 17 | 1.31% |
▷ Private methods | 387 | 29.93% |
Functions | 116 | |
▷ Named functions | 113 | 97.41% |
▷ Anonymous functions | 3 | 2.59% |
Constants | 158 | |
▷ Global constants | 111 | 70.25% |
▷ Class constants | 47 | 29.75% |
▷ 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
25 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/gutenslider_logo-300x300.png | 13.20KB | 5.29KB | ▼ 59.96% |
freemius-pricing/77918a96cac334066ef6edb2ab754c6a.png | 22.92KB | 3.42KB | ▼ 85.08% |
freemius-pricing/8d6f527daf7550f05f466e02895f8878.png | 5.88KB | 3.01KB | ▼ 48.84% |
freemius-pricing/85ccbec16d42629e3550cd853f994ac5.png | 6.35KB | 3.38KB | ▼ 46.76% |
freemius-pricing/5480ed23b199531a8cbc05924f26952b.png | 7.09KB | 2.94KB | ▼ 58.58% |