78% super-block-slider

Code Review | Super block slider - Responsive image & content slider

WordPress plugin Super block slider - Responsive image & content slider scored78%from 54 tests.

About plugin

  • Plugin page: super-block-slider
  • Plugin version: 2.7.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Mar 15, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 73
  • Update frequency: every 12.0 days
  • Top authors: mikemmx (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active /15,845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.49ms] Passed 4 tests

This is a short check of server-side resources used by Super block slider - Responsive image & content slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.05 ▼2.59
Dashboard /wp-admin3.33 ▼0.0144.18 ▼17.23
Posts /wp-admin/edit.php3.38 ▲0.0346.50 ▲3.24
Add New Post /wp-admin/post-new.php5.97 ▲0.0993.98 ▼7.99
Media Library /wp-admin/upload.php3.25 ▲0.0234.12 ▼2.14
Add New Slider /wp-admin/post-new.php?post_type=superblockslider5.9585.16
All slider /wp-admin/edit.php?post_type=superblockslider3.3033.94

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Super block slider - Responsive image & content slider
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲10114.48 ▲0.102.09 ▲0.3743.38 ▼0.08
Dashboard /wp-admin2,247 ▲595.85 ▲0.73100.28 ▼7.4840.16 ▼9.42
Posts /wp-admin/edit.php2,129 ▲402.05 ▲0.0440.16 ▲2.6035.43 ▲0.04
Add New Post /wp-admin/post-new.php6,211 ▲4,67719.14 ▼4.22830.47 ▲139.1734.58 ▼17.20
Media Library /wp-admin/upload.php1,428 ▲404.19 ▼0.0994.57 ▼21.2142.09 ▼6.24
Add New Slider /wp-admin/post-new.php?post_type=superblockslider6,82823.081,246.4483.05
All slider /wp-admin/edit.php?post_type=superblockslider1,0932.0233.8630.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-block-slider/includes/superblockslider_post_type.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/super-block-slider/includes/superblockslider_post_type.php:54

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=superblockslider
    • > Intervention (severe) in unknown
    /wp-admin/post-new.php?post_type=superblockslider - Blocked attempt to show a 'beforeunload' confirmation panel for a frame that never had a user gesture since its load. https://www.chromestatus.com/feature/5082396709879808

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: content slider, parallax, image slider, responsive slider, slider

super-block-slider/super-block-slider.php 85% from 13 tests

The main PHP script in "Super block slider - Responsive image & content slider" version 2.7.3 is automatically included on every request by WordPress
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected891 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
Sass2471384
JavaScript301342
PHP32851162
CSS2002
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin