89% connections-business-directory-languages

Code Review | Connections Business Directory Languages

WordPress plugin Connections Business Directory Languages scored89%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 2.0.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Apr 3, 2023
  • Number of updates: 29
  • Update frequency: every 108.0 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,678 total downloads


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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.31ms] Passed 4 tests

Server-side resources used by Connections Business Directory Languages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0439.03 ▲2.33
Dashboard /wp-admin3.39 ▲0.0543.99 ▼5.87
Posts /wp-admin/edit.php3.51 ▲0.1149.07 ▲2.69
Add New Post /wp-admin/post-new.php5.97 ▲0.0491.42 ▲2.10
Media Library /wp-admin/upload.php3.32 ▲0.0437.15 ▲2.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Connections Business Directory Languages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.20 ▼1.191.66 ▼0.5838.53 ▼6.84
Dashboard /wp-admin2,212 ▲475.87 ▼0.14108.34 ▼9.8242.69 ▼14.13
Posts /wp-admin/edit.php2,097 ▲111.98 ▼0.0339.79 ▲3.6136.80 ▲2.93
Add New Post /wp-admin/post-new.php1,520 ▼1317.46 ▼5.55644.42 ▲49.7260.04 ▲11.39
Media Library /wp-admin/upload.php1,397 ▲94.29 ▲0.0799.61 ▼8.1243.03 ▼1.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 52 tag instead of maximum 10
Please take inspiration from this readme.txt

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

The primary PHP file in "Connections Business Directory Languages" version 2.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-languages.php" instead of "connections_languages.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
Success! There were no dangerous files found in this plugin398 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File25160157

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity12.00
▷ Minimum class complexity6.00
▷ Maximum class complexity18.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1666.67%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin