89% connections-business-directory-facilities

Code Review | Connections Business Directory Facilities

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

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 27, 2017
  • Latest release: Apr 3, 2023
  • Number of updates: 21
  • Update frequency: every 94.5 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,286 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.60ms] Passed 4 tests

An overview of server-side resources used by Connections Business Directory Facilities
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.96 ▼5.65
Dashboard /wp-admin3.31 ▲0.0148.98 ▼5.89
Posts /wp-admin/edit.php3.36 ▲0.0148.14 ▼2.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.00 ▼16.40
Media Library /wp-admin/upload.php3.23 ▲0.0138.78 ▲4.08

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Connections Business Directory Facilities: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲3413.24 ▼1.352.02 ▲0.0837.69 ▼5.34
Dashboard /wp-admin2,223 ▲265.83 ▲0.93107.39 ▼2.5442.85 ▲2.34
Posts /wp-admin/edit.php2,087 ▼132.06 ▲0.0235.32 ▲0.0135.21 ▼0.00
Add New Post /wp-admin/post-new.php1,550 ▼1023.27 ▲5.03671.80 ▲28.7554.35 ▼2.01
Media Library /wp-admin/upload.php1,405 ▲84.27 ▲0.00105.26 ▼0.8242.59 ▼6.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: directory, facilities, business directory

connections-business-directory-facilities/connections-facilities.php 77% from 13 tests

The main PHP script in "Connections Business Directory Facilities" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: The description should be shorter than 140 characters (currently 146 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-facilities.php" instead of "connections-facilities.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected790 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3271482704
PO File1213874
CSS11112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity17.50
▷ Minimum class complexity5.00
▷ Maximum class complexity30.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods23
▷ Static methods1878.26%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
No PNG images were found in this plugin