73% borderless

Code Review | Borderless – Widgets, Elements, Templates and Toolkit for Elementor & Gutenberg

WordPress plugin Borderless – Widgets, Elements, Templates and Toolkit for Elementor & Gutenberg scored73%from 54 tests.

About plugin

  • Plugin page: borderless
  • Plugin version: 1.5.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2021
  • Latest release: Aug 12, 2023
  • Number of updates: 68
  • Update frequency: every 13.5 days
  • Top authors: visualmodo (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

6,000+ active /78,671 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.38MB] [CPU: ▼1.01ms] Passed 4 tests

An overview of server-side resources used by Borderless – Widgets, Elements, Templates and Toolkit for Elementor & Gutenberg
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8038.11 ▼5.72
Dashboard /wp-admin4.89 ▲1.5459.83 ▼4.55
Posts /wp-admin/edit.php4.94 ▲1.5967.85 ▲15.79
Add New Post /wp-admin/post-new.php7.48 ▲1.59101.03 ▼4.75
Media Library /wp-admin/upload.php4.82 ▲1.5949.61 ▲10.99
Library /wp-admin/admin.php?page=pt-library4.6238.97
Post Types /wp-admin/edit.php?post_type=borderless_cpt4.8648.81

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 167 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Borderless – Widgets, Elements, Templates and Toolkit for Elementor & Gutenberg
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲18713.92 ▼0.4313.00 ▲11.0839.93 ▼3.76
Dashboard /wp-admin2,232 ▲525.56 ▼0.0587.48 ▼11.3673.87 ▲32.78
Posts /wp-admin/edit.php2,155 ▲521.99 ▼0.0438.24 ▲2.3035.82 ▲1.20
Add New Post /wp-admin/post-new.php6,414 ▲4,88627.85 ▲4.89887.92 ▲196.6336.89 ▼17.77
Media Library /wp-admin/upload.php1,452 ▲524.14 ▼0.0599.23 ▼17.7577.62 ▲28.34
License /wp-admin/borderless-license.php260.420.0915.25
Library /wp-admin/admin.php?page=pt-library280.420.085.53
Icon Fonts /wp-admin/borderless.php?page=borderless-fonts260.420.136.29
System Info /wp-admin/borderless.php?page=borderless-system-info260.420.098.00
Settings /wp-admin/borderless.php260.420.076.07
Library /wp-admin/borderless.php?page=borderless-library260.420.147.51
Post Types /wp-admin/edit.php?post_type=borderless_cpt1,1211.9531.4227.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 14× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
    • > /wp-content/plugins/borderless/includes/icon-manager/icon-manager.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/pricing.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/list-group.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/modal.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/alert.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/progress-bar.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/icon.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/circular-progress-bar.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/infobox.php
    • > /wp-content/plugins/borderless/modules/wpbakery/elements/icon-group.php
  • 18× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/borderless/modules/wpbakery/custom-default-elements.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/borderless/includes/library/inc/PluginInstallerSkinSilent.php on line 6
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-upgrader.php' (include_path='.:/usr/share/php') in wp-content/plugins/borderless/includes/library/inc/PluginInstallerSkin.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/borderless/includes/library/vendor/awesomemotive/wp-content-importer-v2/src/Importer.php:7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/borderless/includes/library/inc/PluginInstallerSkin.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/borderless/includes/library/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-upgrader.php): failed to open stream: No such file or directory in wp-content/plugins/borderless/includes/library/inc/PluginInstallerSkinSilent.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/borderless/includes/library/inc/WXRImporter.php:5
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/borderless/includes/library/inc/PluginInstallerSkin.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function LIBRARY\\get_option() in wp-content/plugins/borderless/includes/library/views/plugin-page.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/borderless-license.php
    • > Network (severe)
    wp-admin/borderless-license.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=pt-library
    • > Network (severe)
    wp-admin/admin.php?page=pt-library - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/borderless.php?page=borderless-fonts
    • > Network (severe)
    wp-admin/borderless.php?page=borderless-fonts - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/borderless.php?page=borderless-system-info
    • > Network (severe)
    wp-admin/borderless.php?page=borderless-system-info - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/borderless.php
    • > Network (severe)
    wp-admin/borderless.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/borderless.php?page=borderless-library
    • > Network (severe)
    wp-admin/borderless.php?page=borderless-library - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gutenberg, widgets, elements, templates, elementor

borderless/borderless.php Passed 13 tests

The entry point to "Borderless – Widgets, Elements, Templates and Toolkit for Elementor & Gutenberg" version 1.5.2 is a PHP file that has certain tags in its header comment area
71 characters long description:
One service packed with powerful tools to help you reach your purposes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin46,028 lines of code in 140 files:
LanguageFilesBlank linesComment linesLines of code
PHP895,6661,69928,396
CSS271,0971509,302
JavaScript211,8249268,163
Sass150142
SVG20025

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity288.00
Average method complexity3.37
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes73
▷ Abstract classes00.00%
▷ Concrete classes73100.00%
▷ Final classes34.11%
Methods552
▷ Static methods468.33%
▷ Public methods36666.30%
▷ Protected methods9316.85%
▷ Private methods9316.85%
Functions40
▷ Named functions3587.50%
▷ Anonymous functions512.50%
Constants20
▷ Global constants1575.00%
▷ Class constants525.00%
▷ Public constants5100.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
16 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/wpbakery/images/testimonial.png0.55KB0.32KB▼ 42.14%
modules/wpbakery/images/infobox.png0.23KB0.15KB▼ 33.33%
modules/wpbakery/images/pricing.png0.75KB0.35KB▼ 53.24%
modules/wpbakery/images/semi-circular-progress-bar.png0.41KB0.22KB▼ 46.02%
modules/wpbakery/images/progress-bar.png0.20KB0.13KB▼ 33.98%