83% responsive-block-editor-addons

Code Review | Responsive Blocks - WordPress Gutenberg Blocks

WordPress plugin Responsive Blocks - WordPress Gutenberg Blocks scored83%from 54 tests.

About plugin

  • Plugin page: responsive-block-...
  • Plugin version: 1.7.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 9, 2020
  • Latest release: Nov 24, 2023
  • Number of updates: 71
  • Update frequency: every 17.6 days
  • Top authors: cyberchimps (53.52%)keyur5 (33.8%)nayan1304 (15.49%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /35,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▲2.13ms] Passed 4 tests

A check of server-side resources used by Responsive Blocks - WordPress Gutenberg Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2042.04 ▲0.44
Dashboard /wp-admin3.48 ▲0.1749.42 ▼2.60
Posts /wp-admin/edit.php3.53 ▲0.1752.00 ▲6.95
Add New Post /wp-admin/post-new.php6.26 ▲0.38102.69 ▲12.93
Media Library /wp-admin/upload.php3.34 ▲0.1135.88 ▲3.73

Server storage [IO: ▲18.69MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 710 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
category_children
widget_recent-comments
db_upgraded
rbea_blocks
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
responsive_block_editor_addons_review_pending

Browser metrics Passed 4 tests

A check of browser resources used by Responsive Blocks - WordPress Gutenberg Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4414.25 ▼0.021.69 ▼0.0443.35 ▼0.95
Dashboard /wp-admin2,196 ▲225.57 ▲0.0395.18 ▼5.6679.90 ▲31.38
Posts /wp-admin/edit.php2,116 ▲131.98 ▲0.0238.42 ▼6.5534.06 ▼11.73
Add New Post /wp-admin/post-new.php6,234 ▲4,69924.19 ▲1.231,022.21 ▲341.5039.66 ▼6.51
Media Library /wp-admin/upload.php1,416 ▲164.18 ▼0.0497.45 ▲0.6873.16 ▲29.57

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • widget_recent-posts
    • category_children
    • widget_theysaidso_widget
    • rbea_blocks
    • db_upgraded
    • responsive_block_editor_addons_review_pending
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/post-grid/index.php:871
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/gallery-masonry/index.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/post-carousel/index.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/accordion/index.php:26
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/utils/fonts.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/post-timeline/index.php:961
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/portfolio/index.php:425
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/taxonomy-list/index.php:348
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/instagram/index.php:181
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-block-editor-addons/src/blocks/inline-notice/index.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 34 tag instead of maximum 10
The official readme.txt is a good inspiration

responsive-block-editor-addons/responsive-block-editor-addons.php 92% from 13 tests

The entry point to "Responsive Blocks - WordPress Gutenberg Blocks" version 1.7.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis 97% from 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 detected166,097 lines of code in 658 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript4705,6493,59099,377
JSON60025,336
Sass1311,89111821,181
PHP281,6151,80817,967
CSS11616152,194
SVG120042

PHP code 50% from 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 114)
Cyclomatic complexity
Average complexity per logical line of code0.66
Average class complexity167.86
▷ Minimum class complexity1.00
▷ Maximum class complexity956.00
Average method complexity8.39
▷ Minimum method complexity1.00
▷ Maximum method complexity114.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods158
▷ Static methods12176.58%
▷ Public methods15799.37%
▷ Protected methods00.00%
▷ Private methods10.63%
Functions67
▷ Named functions67100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
27 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/mascot-1.png1.69KB0.89KB▼ 47.42%
admin/images/documentation.png6.97KB2.96KB▼ 57.49%
admin/images/mascot-4.png4.64KB2.14KB▼ 53.88%
admin/images/res-icon8.png1.72KB1.07KB▼ 37.56%
admin/images/Responsive-block-1.png9.70KB4.54KB▼ 53.22%