73% extreme-blocks

Code Review | Extreme Blocks

WordPress plugin Extreme Blocks scored 73% from 54 tests.

About plugin

  • Plugin page: extreme-blocks
  • Plugin version: 0.8.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9
  • WordPress version: 6.3.1
  • First release: Feb 4, 2022
  • Latest release: Mar 22, 2022
  • Number of updates: 3
  • Update frequency: every 15.7 days
  • Top authors: intellasoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 299 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲4.91MB] [CPU: ▲27.83ms] Passed 4 tests

An overview of server-side resources used by Extreme Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /8.55 ▲5.0963.67 ▲23.93
Dashboard /wp-admin8.57 ▲5.2777.70 ▲26.52
Posts /wp-admin/edit.php8.57 ▲5.2285.35 ▲39.13
Add New Post /wp-admin/post-new.php9.95 ▲4.06114.62 ▲21.75
Media Library /wp-admin/upload.php8.57 ▲5.3477.60 ▲43.67
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius8.5763.24

Server storage [IO: ▲4.85MB] [DB: ▲0.02MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 393 new files
Database: no new tables, 12 new options
New WordPress options
exbl_options
db_upgraded
fs_active_plugins
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
exbl_activated
fs_gdpr
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

An overview of browser requirements for Extreme Blocks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲11013.21 ▼1.014.40 ▲2.5627.28 ▼14.16
Dashboard /wp-admin2,239 ▲515.85 ▲0.94114.14 ▲9.3447.11 ▲3.89
Posts /wp-admin/edit.php2,122 ▲332.02 ▼0.0240.12 ▲1.2238.79 ▲3.85
Add New Post /wp-admin/post-new.php6,634 ▲5,10129.52 ▲6.31896.65 ▲235.1543.98 ▼12.80
Media Library /wp-admin/upload.php1,421 ▲334.23 ▲0.0697.24 ▼3.5445.76 ▼1.69
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius1,0651.7123.1326.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/extreme-blocks/freemius/includes/class-freemius.php+8575
    Undefined property: stdClass::$plugins
  • Zombie WordPress options were found after uninstall: 12 options
    • fs_accounts
    • widget_recent-comments
    • fs_gdpr
    • exbl_options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • exbl_activated
    • 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
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
  • 67× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'DI\\Definition\\Resolver\\DefinitionResolver' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/Definition/Resolver/ObjectCreator.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'ISS\\EXBL\\Models\\BlockEntity' not found in wp-content/plugins/extreme-blocks/inc/classes/block-entities/Container.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/DependencyException.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/Definition/InstanceDefinition.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DI\\Definition\\ArrayDefinition' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/Definition/ArrayDefinitionExtension.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'ISS\\EXBL\\Abstracts\\BlockEntity' not found in wp-content/plugins/extreme-blocks/inc/classes/block-entities/Grid.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Opis\\Closure\\ISecurityProvider' not found in wp-content/plugins/extreme-blocks/vendor/opis/closure/src/SecurityProvider.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'DI\\Definition\\FactoryDefinition' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/Definition/DecoratorDefinition.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'DI\\Definition\\Exception\\InvalidDefinition' not found in wp-content/plugins/extreme-blocks/vendor/php-di/php-di/src/Definition/Exception/InvalidAnnotation.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/extreme-blocks/vendor/php-di/invoker/src/ParameterResolver/DefaultValueResolver.php:11

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 Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: extreme, gutenberg, editor, blocks

extreme-blocks/extreme-blocks.php 85% from 13 tests

The main file in "Extreme Blocks" v. 0.8.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis 95% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin43,795 lines of code in 327 files:
LanguageFilesBlank linesComment linesLines of code
PHP2629,63719,03439,822
CSS195231771,960
Markdown1147301,089
JSON1100508
JavaScript1447215226
SVG803157
XML29333

PHP code 0% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 210)
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity29.78
▷ Minimum class complexity1.00
▷ Maximum class complexity2,910.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity210.00
Code structure
Namespaces37
Interfaces19
Traits1
Classes163
▷ Abstract classes63.68%
▷ Concrete classes15796.32%
▷ Final classes21.27%
Methods1,746
▷ Static methods22112.66%
▷ Public methods1,27573.02%
▷ Protected methods422.41%
▷ Private methods42924.57%
Functions149
▷ Named functions11073.83%
▷ Anonymous functions3926.17%
Constants137
▷ Global constants10375.18%
▷ Class constants3424.82%
▷ Public constants3294.12%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/imgs/blocks_container-settings.png15.40KB8.91KB▼ 42.13%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
assets/imgs/blocks_main-settings.png19.72KB11.74KB▼ 40.47%
freemius/assets/img/extreme-blocks.png9.16KB5.26KB▼ 42.58%