83% connections-business-directory-local-time

Code Review | Connections Business Directory Local Time

WordPress plugin Connections Business Directory Local Time scored83%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /4,431 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 gracefully, with no errors

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

Server-side resources used by Connections Business Directory Local Time
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.66 ▼3.22
Dashboard /wp-admin3.33 ▲0.0346.64 ▼1.73
Posts /wp-admin/edit.php3.38 ▲0.0343.90 ▼3.00
Add New Post /wp-admin/post-new.php5.91 ▲0.0390.76 ▲4.50
Media Library /wp-admin/upload.php3.25 ▲0.0336.34 ▲1.98

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Connections Business Directory Local Time
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.35 ▼0.381.58 ▼0.1837.28 ▼9.53
Dashboard /wp-admin2,203 ▲235.53 ▼0.0982.16 ▼18.5139.37 ▼4.79
Posts /wp-admin/edit.php2,105 ▲82.01 ▼0.0233.84 ▼4.9931.90 ▼4.92
Add New Post /wp-admin/post-new.php1,543 ▲1723.03 ▼0.77677.96 ▼4.0853.07 ▼1.57
Media Library /wp-admin/upload.php1,408 ▲54.20 ▼0.0095.32 ▼21.5644.05 ▼1.18

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/connections-business-directory-local-time/connections-local-time.php:273

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: clock, business directory, local time

connections-business-directory-local-time/connections-local-time.php 69% from 13 tests

The main file in "Connections Business Directory Local Time" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages")
  • Description: Please don't use more than 140 characters for the plugin description (currently 151 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("connections-business-directory-local-time.php" instead of "connections-local-time.php")

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
No dangerous file extensions were detected792 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.00
▷ Minimum class complexity10.00
▷ Maximum class complexity24.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
▷ Static methods956.25%
▷ Public methods1381.25%
▷ Protected methods16.25%
▷ Private methods212.50%
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/vendor/jClocksGMT/images/jcgmt-3-clock_face.png10.13KB5.72KB▼ 43.50%
includes/vendor/jClocksGMT/images/jcgmt-4-clock_hour.png1.19KB0.23KB▼ 80.97%
includes/vendor/jClocksGMT/images/jcgmt-clock_label.png1.18KB0.51KB▼ 56.58%
includes/vendor/jClocksGMT/images/jcgmt-5-clock_min.png1.18KB0.36KB▼ 69.26%
includes/vendor/jClocksGMT/images/jcgmt-4-clock_sec.png1.33KB0.35KB▼ 74.07%