84% exclusive-blocks

Code Review | Exclusive Blocks

WordPress plugin Exclusive Blocks scored84%from 54 tests.

About plugin

  • Plugin page: exclusive-blocks
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 21, 2022
  • Latest release: Jul 27, 2022
  • Number of updates: 4
  • Update frequency: every 9.3 days
  • Top authors: devscred (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 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.82MB] [CPU: ▲4.79ms] Passed 4 tests

Analyzing server-side resources used by Exclusive Blocks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.31 ▲0.8545.66 ▲0.82
Dashboard /wp-admin4.14 ▲0.8451.50 ▲1.79
Posts /wp-admin/edit.php4.19 ▲0.8353.04 ▲8.18
Add New Post /wp-admin/post-new.php6.83 ▲0.95100.78 ▲13.95
Media Library /wp-admin/upload.php4.00 ▲0.7742.54 ▲8.37

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 9 new options
New WordPress options
exclusiveblocks_dynamic_css_time
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
category_children
widget_theysaidso_widget
widget_recent-comments
db_upgraded
exclusiveblocks_dynamic_css_posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Exclusive Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10313.20 ▼1.152.17 ▼0.0443.51 ▼5.75
Dashboard /wp-admin2,228 ▲405.82 ▼0.06104.13 ▼14.3876.21 ▲33.25
Posts /wp-admin/edit.php2,117 ▲281.98 ▼0.0237.55 ▲2.7733.22 ▼1.52
Add New Post /wp-admin/post-new.php6,470 ▲4,93627.16 ▲4.071,069.57 ▲419.2840.95 ▼21.28
Media Library /wp-admin/upload.php1,404 ▲164.18 ▼0.0796.05 ▼2.6586.81 ▲42.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • category_children
    • theysaidso_admin_options
    • exclusiveblocks_dynamic_css_time
    • exclusiveblocks_dynamic_css_posts
    • widget_recent-comments
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: css in wp-content/plugins/exclusive-blocks/includes/frontend/button.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/exclusive-blocks/includes/class-template-library.php:120
    • > PHP Notice
      Undefined variable: blockData in wp-content/plugins/exclusive-blocks/includes/frontend/grid.php on line 8
    • > PHP Notice
      Undefined variable: css in wp-content/plugins/exclusive-blocks/includes/frontend/post-grid.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to a member function set_selector() on null in wp-content/plugins/exclusive-blocks/includes/frontend/tabs.php:7
    • > PHP Notice
      Undefined variable: css in wp-content/plugins/exclusive-blocks/includes/frontend/tabs.php on line 7
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/exclusive-blocks/includes/frontend/grid.php on line 8
    • > PHP Notice
      Undefined variable: css in wp-content/plugins/exclusive-blocks/includes/frontend/heading.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to a member function set_selector() on null in wp-content/plugins/exclusive-blocks/includes/frontend/post-grid.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function set_selector() on null in wp-content/plugins/exclusive-blocks/includes/frontend/accordion.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: blocks, gutenberg, exclusive, gutenberg blocks, editor

exclusive-blocks/exclusive-blocks.php Passed 13 tests

The main PHP script in "Exclusive Blocks" version 1.1.0 is automatically included on every request by WordPress
57 characters long description:
Exclusive Blocks — The Best Gutenberg Blocks Collection

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin8,489 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,0761,4885,611
CSS9176461,679
JavaScript1016975909
SVG910290

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity40.42
▷ Minimum class complexity2.00
▷ Maximum class complexity85.00
Average method complexity4.45
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods137
▷ Static methods3827.74%
▷ Public methods13497.81%
▷ Protected methods21.46%
▷ Private methods10.73%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants1292.31%
▷ Class constants17.69%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin