73% gutenslider

Code Review | WordPress Slider Block Gutenslider

WordPress plugin WordPress Slider Block Gutenslider scored73%from 54 tests.

About plugin

  • Plugin page: gutenslider
  • Plugin version: 6.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.4.1
  • WordPress version: 6.3.1
  • First release: May 15, 2019
  • Latest release: Nov 13, 2023
  • Number of updates: 198
  • Update frequency: every 8.3 days
  • Top authors: eedee (100%)

Code review

54 tests

User reviews

60 reviews

Install metrics

10,000+ active /357,806 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /8.93 ▲5.4774.53 ▲34.94
Dashboard /wp-admin8.95 ▲5.6073.37 ▲12.71
Posts /wp-admin/edit.php8.95 ▲5.5984.57 ▲36.82
Add New Post /wp-admin/post-new.php9.59 ▲3.71112.05 ▲19.07
Media Library /wp-admin/upload.php8.95 ▲5.7279.03 ▲38.32
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius8.9563.91
Gutenslider /wp-admin/options-general.php?page=settings-page-gutenslider8.952,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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,813 ▲7714.19 ▼0.151.72 ▲0.0231.03 ▼13.16
Dashboard /wp-admin2,210 ▲365.62 ▼0.0693.38 ▼6.5543.94 ▼1.83
Posts /wp-admin/edit.php2,125 ▲252.01 ▲0.0541.34 ▲4.0340.10 ▼2.81
Add New Post /wp-admin/post-new.php1,666 ▲22620.55 ▲2.91651.24 ▼84.5956.48 ▲7.52
Media Library /wp-admin/upload.php1,421 ▲214.17 ▼0.0397.62 ▼18.7246.37 ▼2.56
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius1,0921.6529.7630.48
Gutenslider /wp-admin/options-general.php?page=settings-page-gutenslider9831.6826.3749.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1328,24617,60435,336
JavaScript37921691,405
SVG512705
Markdown13730579
JSON100548
Sass1249149
CSS351042

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 code0.65
Average class complexity84.28
▷ Minimum class complexity1.00
▷ Maximum class complexity3,096.00
Average method complexity4.55
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes11.96%
Methods1,293
▷ Static methods20015.47%
▷ Public methods88968.75%
▷ Protected methods171.31%
▷ Private methods38729.93%
Functions116
▷ Named functions11397.41%
▷ Anonymous functions32.59%
Constants158
▷ Global constants11170.25%
▷ Class constants4729.75%
▷ Public constants47100.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
FileSize - originalSize - compressedSavings
build/images/gutenslider_logo-300x300.png13.20KB5.29KB▼ 59.96%
freemius-pricing/77918a96cac334066ef6edb2ab754c6a.png22.92KB3.42KB▼ 85.08%
freemius-pricing/8d6f527daf7550f05f466e02895f8878.png5.88KB3.01KB▼ 48.84%
freemius-pricing/85ccbec16d42629e3550cd853f994ac5.png6.35KB3.38KB▼ 46.76%
freemius-pricing/5480ed23b199531a8cbc05924f26952b.png7.09KB2.94KB▼ 58.58%