83% superb-blocks

Code Review | Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements

WordPress plugin Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements scored83%from 54 tests.

About plugin

  • Plugin page: superb-blocks
  • Plugin version: 3.1.0
  • PHP compatiblity: 6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4
  • WordPress version: 6.3.1
  • First release: May 5, 2020
  • Latest release: Nov 15, 2023
  • Number of updates: 30
  • Update frequency: every 43.0 days
  • Top authors: suplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10,000+ active /113,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.79MB] [CPU: ▲3.50ms] Passed 4 tests

Server-side resources used by Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.28 ▲0.8145.69 ▲4.19
Dashboard /wp-admin4.09 ▲0.7860.10 ▲12.66
Posts /wp-admin/edit.php4.14 ▲0.7850.16 ▲3.77
Add New Post /wp-admin/post-new.php7.00 ▲1.1190.18 ▼1.15
Media Library /wp-admin/upload.php4.01 ▲0.7837.20 ▲7.17
Dashboard /wp-admin/admin.php?page=superbaddons4.0735.74
Settings /wp-admin/admin.php?page=superbaddons-settings4.1037.99
Elementor Addons /wp-admin/admin.php?page=superbaddons-element-dashboard4.0834.98
Get Help /wp-admin/admin.php?page=superbaddons-support4.1137.73
Gutenberg Addons /wp-admin/admin.php?page=superbaddons-gutenberg-dashboard4.1538.31

Server storage [IO: ▲2.00MB] [DB: ▲0.03MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 213 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
superbaddons_pre_activation
widget_theysaidso_widget
superbaddonslibrary_keydomain
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11414.38 ▲0.101.90 ▲0.0843.34 ▲0.20
Dashboard /wp-admin2,220 ▲435.64 ▼0.0196.95 ▲5.4479.89 ▲41.29
Posts /wp-admin/edit.php2,144 ▲442.11 ▲0.1036.92 ▼2.1833.88 ▼2.63
Add New Post /wp-admin/post-new.php1,663 ▲13721.61 ▼1.62686.19 ▲76.9052.41 ▼1.02
Media Library /wp-admin/upload.php1,440 ▲374.19 ▲0.03101.89 ▲0.2871.79 ▲29.58
Dashboard /wp-admin/admin.php?page=superbaddons1,2201.9824.2467.58
Settings /wp-admin/admin.php?page=superbaddons-settings1,3082.1425.8840.43
Elementor Addons /wp-admin/admin.php?page=superbaddons-element-dashboard1,0111.8229.2232.09
Get Help /wp-admin/admin.php?page=superbaddons-support1,4692.0225.3461.40
Gutenberg Addons /wp-admin/admin.php?page=superbaddons-gutenberg-dashboard1,6202.2136.9778.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • superbaddonslibrary_keydomain
    • db_upgraded
    • superbaddons_pre_activation
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-blocks/src/gutenberg/templates/pattern-tab-library-button.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/superb-blocks/src/gutenberg/templates/library-button.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/superb-blocks/src/gutenberg/templates/appender-button.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

superb-blocks/plugin.php 92% from 13 tests

The main PHP file in "Superb Addons - WordPress Editor Blocks & Patterns and Elementor Sections & Elements" ver. 3.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("superb-blocks.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin6,283 lines of code in 168 files:
LanguageFilesBlank linesComment linesLines of code
PHP746923484,854
SVG46001,138
JSON700209
CSS210462
JavaScript200120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.23
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces20
Interfaces0
Traits0
Classes65
▷ Abstract classes00.00%
▷ Concrete classes65100.00%
▷ Final classes00.00%
Methods241
▷ Static methods7029.05%
▷ Public methods18878.01%
▷ Protected methods00.00%
▷ Private methods5321.99%
Functions9
▷ Named functions111.11%
▷ Anonymous functions888.89%
Constants84
▷ Global constants67.14%
▷ Class constants7892.86%
▷ Public constants78100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/pointing_arrow.png0.37KB0.33KB▼ 9.63%
assets/img/crown.png1.19KB0.61KB▼ 48.40%
(invalid) blocks/images/defaultAvatar.dda9e675.png1.68KB0.00KB▼ 100.00%
assets/img/icon-superb-dashboard-menu.png1.30KB0.79KB▼ 39.11%
assets/img/superb_s_icon.png1.20KB0.55KB▼ 54.02%