79% blockstrap-page-builder-blocks

Code Review | BlockStrap Page Builder Blocks

WordPress plugin BlockStrap Page Builder Blocks scored79%from 54 tests.

About plugin

  • Plugin page: blockstrap-page-b...
  • Plugin version: 0.1.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 8, 2022
  • Latest release: Aug 31, 2023
  • Number of updates: 13
  • Update frequency: every 23.1 days
  • Top authors: stiofansisland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /3,310 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲4.45MB] [CPU: ▲48.71ms] Passed 4 tests

Server-side resources used by BlockStrap Page Builder Blocks
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.25 ▲0.7944.23 ▼1.81
Dashboard /wp-admin8.96 ▲5.65108.43 ▲55.78
Posts /wp-admin/edit.php9.01 ▲5.66118.46 ▲67.53
Add New Post /wp-admin/post-new.php20.57 ▲14.68231.91 ▲133.25
Media Library /wp-admin/upload.php8.93 ▲5.70109.59 ▲73.35
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings8.9492.97
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings8.9193.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 551 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

BlockStrap Page Builder Blocks: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,927 ▲16614.26 ▼0.0216.80 ▲14.9541.71 ▼3.94
Dashboard /wp-admin2,235 ▲555.64 ▲0.0196.30 ▼3.2749.71 ▲5.19
Posts /wp-admin/edit.php2,140 ▲402.15 ▲0.1140.69 ▲4.7536.41 ▼1.16
Add New Post /wp-admin/post-new.php1,704 ▲16921.18 ▲3.18681.87 ▲17.3540.81 ▼41.57
Media Library /wp-admin/upload.php1,443 ▲434.20 ▲0.02101.67 ▼2.6781.02 ▲32.97
AyeCode UI /wp-admin/options-general.php?page=ayecode-ui-settings1,0932.2834.5334.37
Font Awesome /wp-admin/options-general.php?page=wp-font-awesome-settings1,1162.1824.6740.59

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

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

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
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/blockstrap-page-builder-blocks/vendor/ayecode/wp-ayecode-ui/includes/inc/bs5-js.php
  • 45× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-archive-title.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-navbar.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-nav-dropdown.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/blockstrap-page-builder-blocks/patterns/comments.php:50
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-pagination.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-nav-item.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-accordion.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/vendor/ayecode/wp-super-duper/map.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blockstrap-page-builder-blocks/classes/class-blockstrap-blocks-comments.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Super_Duper' not found in wp-content/plugins/blockstrap-page-builder-blocks/blocks/class-blockstrap-widget-skip-links.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: design, blocks, builder, bootstrap, page builder

blockstrap-page-builder-blocks/blockstrap-page-builder-blocks.php Passed 13 tests

The entry point to "BlockStrap Page Builder Blocks" version 0.1.8 is a PHP file that has certain tags in its header comment area
45 characters long description:
BlockStrap - A FSE page builder for WordPress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected91,076 lines of code in 487 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript286,4304,16534,384
Sass3175,3376,40226,228
PHP724,8315,60924,040
SVG420124,980
PO File14541,388966
JSON100386
CSS261729492

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity46.37
▷ Minimum class complexity1.00
▷ Maximum class complexity539.00
Average method complexity7.39
▷ Minimum method complexity1.00
▷ Maximum method complexity95.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes52
▷ Abstract classes00.00%
▷ Concrete classes52100.00%
▷ Final classes11.92%
Methods370
▷ Static methods7720.81%
▷ Public methods36197.57%
▷ Protected methods00.00%
▷ Private methods92.43%
Functions132
▷ Named functions9874.24%
▷ Anonymous functions3425.76%
Constants39
▷ Global constants39100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/Blockstrap-2x.png4.45KB4.26KB▼ 4.30%
assets/images/Blockstrap-white-2x.png7.21KB4.29KB▼ 40.56%
assets/images/placeholder.png0.07KB0.08KB0.00%
assets/images/Blockstrap.png4.45KB4.26KB▼ 4.30%
assets/images/Blockstrap-white.png7.21KB4.29KB▼ 40.56%