72% blockypage

Code Review | BlockyPage - Gutenberg Based Page Builder

WordPress plugin BlockyPage - Gutenberg Based Page Builder scored 72% from 54 tests.

About plugin

  • Plugin page: blockypage
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.2-5.5.1
  • WordPress version: 5.9.2
  • First release: Aug 18, 2019
  • Latest release: Oct 27, 2020
  • Number of updates: 63
  • Update frequency: every 6.9 days
  • Top authors: blockypage (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active / 4,008 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲3.83MB] [CPU: ▼273.45ms] Passed 4 tests

Server-side resources used by BlockyPage - Gutenberg Based Page Builder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /7.91 ▲4.39126.05 ▲70.06
Dashboard /wp-admin7.92 ▲4.5259.75 ▲23.14
Posts /wp-admin/edit.php7.93 ▲4.2961.53 ▲21.26
Add New Post /wp-admin/post-new.php9.10 ▲2.13105.53 ▼1,167.86
Media Library /wp-admin/upload.php7.93 ▲4.6357.19 ▲29.65
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius7.9345.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 199 new files
Database: no new tables, 5 new options
New WordPress options
fs_api_cache
fs_debug_mode
fs_accounts
fs_active_plugins
fs_gdpr

Browser metrics Passed 4 tests

An overview of browser requirements for BlockyPage - Gutenberg Based Page Builder
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,969 ▲24717.17 ▲1.5225.50 ▲19.582.13 ▲0.05
Dashboard /wp-admin2,941 ▲876.14 ▼0.03124.61 ▼41.51184.63 ▼19.30
Posts /wp-admin/edit.php2,761 ▲703.25 ▲0.0264.32 ▼3.85156.27 ▲14.88
Add New Post /wp-admin/post-new.php1,710 ▲4951.89 ▲35.64845.79 ▲398.33141.61 ▼16.93
Media Library /wp-admin/upload.php1,750 ▲535.54 ▲0.03139.32 ▼34.32213.33 ▲27.81
Freemius Debug [v.2.3.0] /wp-admin/admin.php?page=freemius1,4652.5052.61129.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 5 options in the database
    • fs_accounts
    • fs_active_plugins
    • fs_api_cache
    • fs_gdpr
    • fs_debug_mode

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blockypage/freemius/templates/ajax-loader.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function freemius() in wp-content/plugins/blockypage/freemius/templates/partials/network-activation.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/blockypage/page-templates/boxed.php:1
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 7
    • > PHP Notice
      Undefined variable: VARS in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/blockypage/freemius/templates/account/partials/addon.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/blockypage/page-templates/full-width.php:1

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-content/plugins/blockypage/dist/css/style.css?v=1.2.4&ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-content/plugins/blockypage/dist/js/common-script.js?v=1.2.4 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === blockypage === )
  • Screenshots: Add descriptions for screenshots #1, #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #2, #20, #21, #22, #23, #24, #25, #26, #27, #3, #3, #4, #4, #5, #6, #6, #7, #7, #8, #9 in blockypage/assets to your readme.txt
You can take inspiration from this readme.txt

blockypage/plugin.php 92% from 13 tests

The entry point to "BlockyPage - Gutenberg Based Page Builder" version 1.2.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blockypage.php" instead of "plugin.php")

Code Analysis 97% from 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
There were no executable files found in this plugin50,195 lines of code in 145 files:
LanguageFilesBlank linesComment linesLines of code
PHP1086,78715,40128,365
PO File105,7106,91312,558
SVG30128,777
JavaScript73459198
Markdown1610192
CSS150478
JSON10027

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,609)
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity81.33
▷ Minimum class complexity1.00
▷ Maximum class complexity2,609.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes24.35%
▷ Concrete classes4495.65%
▷ Final classes00.00%
Methods1,085
▷ Static methods17115.76%
▷ Public methods75369.40%
▷ Protected methods151.38%
▷ Private methods31729.22%
Functions109
▷ Named functions109100.00%
▷ Anonymous functions00.00%
Constants119
▷ Global constants9680.67%
▷ Class constants2319.33%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
images/blpge_logo.png1.74KB0.67KB▼ 61.59%
images/blocky.png10.21KB4.68KB▼ 54.14%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/blockypage.png9.16KB5.26KB▼ 42.58%