77% massive-addons-for-wp-blocks

Code Review | Massive Addons for Gutenberg and WordPress

WordPress plugin Massive Addons for Gutenberg and WordPress scored77%from 54 tests.

About plugin

  • Plugin page: massive-addons-fo...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.7
  • WordPress version: 6.3.1
  • First release: Apr 25, 2019
  • Latest release: Mar 20, 2021
  • Number of updates: 40
  • Update frequency: every 17.5 days
  • Top authors: nasir179125 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /985 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
Installer ran successfully

Server metrics [RAM: ▼0.19MB] [CPU: ▼14.28ms] Passed 4 tests

Server-side resources used by Massive Addons for Gutenberg and WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1242.39 ▼7.76
Dashboard /wp-admin3.38 ▲0.0853.62 ▲2.04
Posts /wp-admin/edit.php3.43 ▲0.0851.57 ▼1.95
Add New Post /wp-admin/post-new.php4.90 ▼0.9955.69 ▼49.25
Media Library /wp-admin/upload.php3.31 ▲0.0841.08 ▲1.83

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Massive Addons for Gutenberg and WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲16213.73 ▼1.0212.72 ▲10.6438.73 ▼2.91
Dashboard /wp-admin2,221 ▲155.84 ▼0.05113.94 ▲12.4543.29 ▼0.70
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0137.28 ▲0.5931.97 ▼8.06
Add New Post /wp-admin/post-new.php6,232 ▲4,70126.40 ▲3.08895.20 ▲233.8837.93 ▼43.58
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.02110.73 ▼5.3649.86 ▲1.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% 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 0% 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
Please take a closer look at the following
  • 10× PHP files output text when accessed directly:
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/button.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/count-up.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/int_banner.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/headings.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/infobox.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/creativelink.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/accordion_slides.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/infobanner.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/ihover.php
    • > /wp-content/plugins/massive-addons-for-wp-blocks/render/price.php
  • 144× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: size in wp-content/plugins/massive-addons-for-wp-blocks/render/accordion_slides.php on line 1
    • > PHP Notice
      Undefined variable: clr in wp-content/plugins/massive-addons-for-wp-blocks/render/creativelink.php on line 81
    • > PHP Notice
      Undefined variable: description in wp-content/plugins/massive-addons-for-wp-blocks/render/ihover.php on line 20
    • > PHP Notice
      Undefined variable: content in wp-content/plugins/massive-addons-for-wp-blocks/render/infobox.php on line 23
    • > PHP Notice
      Undefined variable: style_visibility in wp-content/plugins/massive-addons-for-wp-blocks/render/infobanner.php on line 3
    • > PHP Notice
      Undefined variable: event in wp-content/plugins/massive-addons-for-wp-blocks/render/accordion.php on line 1
    • > PHP Notice
      Undefined variable: style in wp-content/plugins/massive-addons-for-wp-blocks/render/creativelink.php on line 41
    • > PHP Notice
      Undefined variable: imgsizmbl in wp-content/plugins/massive-addons-for-wp-blocks/render/int_banner.php on line 29
    • > PHP Notice
      Undefined variable: count_box_height in wp-content/plugins/massive-addons-for-wp-blocks/render/infobox.php on line 8
    • > PHP Notice
      Undefined variable: border_color in wp-content/plugins/massive-addons-for-wp-blocks/render/ihover.php on line 1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4 in massive-addons-for-wp-blocks/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

massive-addons-for-wp-blocks/index.php 85% from 13 tests

The main PHP script in "Massive Addons for Gutenberg and WordPress" version 1.3 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("massive-addons-for-wp-blocks.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin19,229 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
CSS30548,280
JavaScript16881795,881
SVG3004,065
PHP1467401,003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/7cntr.png20.55KB2.29KB▼ 88.86%