83% southern-europes-bootscout-blocks

Code Review | Southern Europe's BootScout Blocks

WordPress plugin Southern Europe's BootScout Blocks scored83%from 54 tests.

About plugin

  • Plugin page: southern-europes-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.3-6.1.1
  • WordPress version: 6.3.1
  • First release: May 21, 2022
  • Latest release: Feb 2, 2023
  • Number of updates: 4
  • Update frequency: every 64.3 days
  • Top authors: thomasthorne (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲12.87MB] [CPU: ▲91.07ms] 75% from 4 tests

Analyzing server-side resources used by Southern Europe's BootScout Blocks
Please fix the following
  • Extra RAM: Try to keep extra memory usage under 5MB (currently 12.87MB on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /16.25 ▲12.79124.16 ▲85.49
Dashboard /wp-admin16.21 ▲12.90138.42 ▲89.40
Posts /wp-admin/edit.php16.26 ▲12.90146.14 ▲95.32
Add New Post /wp-admin/post-new.php25.87 ▲19.99302.88 ▲213.83
Media Library /wp-admin/upload.php16.09 ▲12.86127.16 ▲94.08

Server storage [IO: ▲0.35MB] [DB: ▲0.01MB] 67% from 3 tests

Filesystem and database footprint
Please try to fix the following items
  • There were 1091 files (18,803.82KB) illegally modified outside of "wp-content/plugins/southern-europes-bootscout-blocks/" and "wp-content/uploads/"
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advanced-form.asset.php
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-accordion.css
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advancedgallery.asset.php
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advancedbtn.js
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advancedbtn.asset.php
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advanced-form.css
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-accordion.js
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advanced-form.js
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-advancedbtn.css
    • (new file) wp-content/plugins/kadence-blocks/dist/blocks-accordion.asset.php
    • ...
Filesystem: 30 new files
Database: no new tables, 19 new options
New WordPress options
can_compress_scripts
db_upgraded
kadence_blocks_schema_version
fs_active_plugins
stackable_pro_notice_start_date
stellarwp_telemetry
stellarwp_telemetry_kadence-blocks_show_optin
fs_accounts
widget_recent-comments
stackable_current_version_installed
...

Browser metrics Passed 4 tests

An overview of browser requirements for Southern Europe's BootScout Blocks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,806 ▼95120.75 ▲6.511.73 ▼0.4326.96 ▼20.43
Dashboard /wp-admin2,279 ▲885.93 ▲1.04126.52 ▲8.3563.55 ▲19.53
Posts /wp-admin/edit.php2,159 ▲702.13 ▲0.0158.18 ▲22.5237.20 ▲2.38
Add New Post /wp-admin/post-new.php8,464 ▲6,94442.68 ▲19.412,177.21 ▲1,456.8141.13 ▼27.88
Media Library /wp-admin/upload.php1,458 ▲704.24 ▲0.08109.54 ▼0.9645.55 ▼0.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 19 options
    • fs_active_plugins
    • stackable_redirect_to_welcome
    • db_upgraded
    • widget_recent-posts
    • stellarwp_telemetry_kadence-blocks_show_optin
    • stackable_current_version_installed
    • stackable_v2_frontend_detector_counter
    • widget_recent-comments
    • fs_debug_mode
    • stellarwp_telemetry_last_send
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/southern-europes-bootscout-blocks/vendor/afragen/wp-dismiss-notice/wp-dismiss-notice.php:142
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/southern-europes-bootscout-blocks/inc/patterns.php:112
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/southern-europes-bootscout-blocks/vendor/afragen/wp-dependency-installer/wp-dependency-installer-skin.php on line 17
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/southern-europes-bootscout-blocks/vendor/afragen/wp-dependency-installer/wp-dependency-installer-skin.php on line 17
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/southern-europes-bootscout-blocks/vendor/afragen/wp-dependency-installer/wp-dependency-installer-skin.php on line 17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: blocks, gutenberg blocks, gutenberg, wordpress blocks, page builder

southern-europes-bootscout-blocks/sebootscout-block-patterns.php 92% from 13 tests

The main PHP script in "Southern Europe's BootScout Blocks" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("southern-europes-bootscout-blocks.php" instead of "sebootscout-block-patterns.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected1,557 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP152908231,252
JSON510203
HTML1234764
JavaScript18824
CSS12014

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity30.43
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods80
▷ Static methods2531.25%
▷ Public methods7188.75%
▷ Protected methods00.00%
▷ Private methods911.25%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin