83% connections-business-directory-login

Code Review | Connections Business Directory Login

WordPress plugin Connections Business Directory Login scored83%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 3.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Aug 8, 2014
  • Latest release: Dec 1, 2023
  • Number of updates: 58
  • Update frequency: every 58.7 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /13,962 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.41ms] Passed 4 tests

An overview of server-side resources used by Connections Business Directory Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0434.07 ▼6.09
Dashboard /wp-admin3.35 ▲0.0045.06 ▼18.86
Posts /wp-admin/edit.php3.40 ▲0.0445.66 ▲0.46
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.47 ▼9.14
Media Library /wp-admin/upload.php3.27 ▲0.0435.20 ▲1.71

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Connections Business Directory Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.28 ▲0.001.60 ▼0.1936.86 ▼10.50
Dashboard /wp-admin2,192 ▲145.62 ▼0.1091.92 ▼19.8041.01 ▼4.91
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0038.81 ▼3.8435.19 ▲1.30
Add New Post /wp-admin/post-new.php1,526 ▼023.46 ▲0.23631.90 ▼51.0755.63 ▼0.52
Media Library /wp-admin/upload.php1,400 ▼04.15 ▼0.0593.34 ▼4.7142.42 ▲0.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Almost there! Just fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connections-business-directory-login/connections-login.php:426
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/User_Register.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/User_Property.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/Request_Reset_Password.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/User_Link.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/Login_Form.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_Directory\\Shortcode' not found in wp-content/plugins/connections-business-directory-login/includes/Shortcode/Reset_Password.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

connections-business-directory-login/connections-login.php 85% from 13 tests

The main PHP script in "Connections Business Directory Login" version 3.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("connections-business-directory-login.php" instead of "connections-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,281 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File27279201

PHP code Passed 2 tests

This is a very shot review 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.32
Average class complexity14.12
▷ Minimum class complexity2.00
▷ Maximum class complexity30.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes787.50%
▷ Static methods816.00%
▷ Public methods2142.00%
▷ Protected methods1836.00%
▷ Private methods1122.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants436.36%
▷ Class constants763.64%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin