72% beyondconnect

Code Review | beyondConnect

WordPress plugin beyondConnect scored72%from 54 tests.

About plugin

  • Plugin page: beyondconnect
  • Plugin version: 2.2.16
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 6, 2019
  • Latest release: Nov 16, 2022
  • Number of updates: 126
  • Update frequency: every 11.2 days
  • Top authors: beyondsoftware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,013 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: ▲0.67MB] [CPU: ▼1.09ms] Passed 4 tests

An overview of server-side resources used by beyondConnect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6648.01 ▲3.48
Dashboard /wp-admin3.99 ▲0.6454.60 ▼11.19
Posts /wp-admin/edit.php4.04 ▲0.6856.89 ▲9.36
Add New Post /wp-admin/post-new.php6.59 ▲0.7088.89 ▼6.00
Media Library /wp-admin/upload.php3.91 ▲0.6845.39 ▲9.82
Settings /wp-admin/admin.php?page=beyondconnect_settings3.8844.89
Dashboard /wp-admin/admin.php?page=beyondconnect3.9437.85
Shortcodes /wp-admin/admin.php?page=beyondconnect_shortcodes_menu3.8839.07

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
recovery_mode_email_last_sent
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for beyondConnect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17113.80 ▼0.738.25 ▲6.6842.75 ▲4.16
Dashboard /wp-admin2,227 ▲505.56 ▼0.0092.36 ▼7.1437.17 ▼6.30
Posts /wp-admin/edit.php2,135 ▲322.03 ▲0.0740.24 ▲1.7531.97 ▼0.47
Add New Post /wp-admin/post-new.php1,564 ▲3818.30 ▼4.64673.09 ▲17.4781.23 ▲40.75
Media Library /wp-admin/upload.php1,435 ▲354.22 ▲0.0095.36 ▼8.8641.78 ▼2.51
Settings /wp-admin/admin.php?page=beyondconnect_settings1,1222.0526.9729.32
Dashboard /wp-admin/admin.php?page=beyondconnect7241.516.8715.14
Shortcodes /wp-admin/admin.php?page=beyondconnect_shortcodes_menu8032.0026.1523.33

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=beyondconnect
    • > Parse error in wp-content/plugins/beyondconnect/inc/Beyond.php+405
    syntax error, unexpected '|', expecting ';' or '{'

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/beyondconnect/beyondConnect.php
  • 36× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Inc\\Base\\apply_filters() in wp-content/plugins/beyondconnect/inc/Base/NinjaFormsFieldSettings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/beyondconnect/inc/Pages/Shortcodes.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/beyondconnect/inc/Base/AuthenticationController.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\injaFormsBaseAction' not found in wp-content/plugins/beyondconnect/inc/Base/NinjaFormsActions_AddAddress.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\ShortcodesBaseController' not found in wp-content/plugins/beyondconnect/inc/Base/ShortcodesPaymentsController.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beyondconnect/templates/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/beyondconnect/inc/Base/AddressController.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/beyondconnect/inc/Base/NinjaFormsController.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Inc\\Base\injaFormsBaseAction' not found in wp-content/plugins/beyondconnect/inc/Base/NinjaFormsActions_AddAddressEmailNewsletter.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/beyondconnect/templates/shortcodes.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Please fix this invalid URI: "https:/beyond-sw.com"
The official readme.txt is a good inspiration

beyondconnect/beyondConnect.php 92% from 13 tests

The primary PHP file in "beyondConnect" version 2.2.16 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("beyondconnect.php" instead of "beyondConnect.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,745 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PHP671,1616694,287
PO File2142208298
JSON20083
JavaScript310551
CSS23326

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.38
Average class complexity12.85
▷ Minimum class complexity1.00
▷ Maximum class complexity112.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes917.65%
Methods245
▷ Static methods4116.73%
▷ Public methods22792.65%
▷ Protected methods104.08%
▷ Private methods83.27%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin