84% magazine-blocks

Code Review | Magazine Blocks by BlockArt – Gutenberg Editor, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks

WordPress plugin Magazine Blocks by BlockArt – Gutenberg Editor, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks scored84%from 54 tests.

About plugin

  • Plugin page: magazine-blocks
  • Plugin version: 1.2.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: Apr 4, 2022
  • Latest release: Nov 6, 2023
  • Number of updates: 33
  • Update frequency: every 17.8 days
  • Top authors: wpblockart (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /18,564 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.73MB] [CPU: ▲3.14ms] Passed 4 tests

Analyzing server-side resources used by Magazine Blocks by BlockArt – Gutenberg Editor, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7950.59 ▲12.82
Dashboard /wp-admin4.03 ▲0.6960.40 ▼0.39
Posts /wp-admin/edit.php4.08 ▲0.7351.02 ▲5.41
Add New Post /wp-admin/post-new.php6.68 ▲0.7994.23 ▼5.27
Media Library /wp-admin/upload.php3.96 ▲0.7346.85 ▲14.56

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Magazine Blocks by BlockArt – Gutenberg Editor, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,034 ▲27213.89 ▼0.4612.28 ▲10.6041.94 ▼5.77
Dashboard /wp-admin2,305 ▲1245.64 ▼0.0898.97 ▼7.7756.01 ▲14.53
Posts /wp-admin/edit.php2,216 ▲1132.13 ▲0.1836.88 ▼6.1045.13 ▲7.85
Add New Post /wp-admin/post-new.php1,745 ▲21923.59 ▲0.60717.05 ▲118.4238.60 ▼11.69
Media Library /wp-admin/upload.php1,518 ▲1184.22 ▼0.0197.96 ▲1.5652.74 ▲11.68
Settings /wp-admin/admin.php?page=magazine-blocks#/settings9546.52159.3427.32
Getting Started /wp-admin/admin.php?page=magazine-blocks#/getting-started9316.3869.4725.11

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • _magazine_blocks_version
    • db_upgraded
    • 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)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 100× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/MODULEWorkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/FuelphpInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/ShopwareInstaller.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/CockpitInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/KirbyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/magazine-blocks/vendor/composer/installers/src/Composer/Installers/DrupalInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #2, #3, #4, #5, #6, #7, #8, #9 in magazine-blocks/assets to your readme.txt
The official readme.txt is a good inspiration

magazine-blocks/magazine-blocks.php 92% from 13 tests

Analyzing the main PHP file in "Magazine Blocks by BlockArt – Gutenberg Editor, Magazine & Newspaper Website Builder, Page Builder with Posts Blocks" version 1.2.7
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected54,735 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript85,9793,16148,346
PHP1289981,4625,262
CSS3180640
JSON1810487

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity6.53
▷ Minimum class complexity1.00
▷ Maximum class complexity345.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces5
Interfaces0
Traits1
Classes117
▷ Abstract classes10.85%
▷ Concrete classes11699.15%
▷ Final classes32.59%
Methods212
▷ Static methods6229.25%
▷ Public methods13865.09%
▷ Protected methods4119.34%
▷ Private methods3315.57%
Functions33
▷ Named functions1442.42%
▷ Anonymous functions1957.58%
Constants13
▷ Global constants861.54%
▷ Class constants538.46%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/placeholder-150x150.png2.11KB1.16KB▼ 44.98%