89% connections-business-directory-certifications

Code Review | Connections Business Directory Certifications

WordPress plugin Connections Business Directory Certifications scored 89% from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 19, 2018
  • Latest release: Apr 3, 2023
  • Number of updates: 24
  • Update frequency: every 76.8 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 4,217 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.92ms] Passed 4 tests

Server-side resources used by Connections Business Directory Certifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.56 ▼8.80
Dashboard /wp-admin3.37 ▲0.0743.00 ▼7.36
Posts /wp-admin/edit.php3.48 ▲0.1343.99 ▼3.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0781.73 ▼9.93
Media Library /wp-admin/upload.php3.29 ▲0.0731.97 ▼5.60

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Connections Business Directory Certifications
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.32 ▼0.963.79 ▲1.6536.49 ▼12.12
Dashboard /wp-admin2,215 ▲304.88 ▼0.07114.70 ▼1.7645.48 ▼1.40
Posts /wp-admin/edit.php2,094 ▲51.98 ▼0.0633.36 ▼2.0131.50 ▼4.55
Add New Post /wp-admin/post-new.php1,520 ▲617.57 ▼0.03670.19 ▼25.2867.65 ▲11.25
Media Library /wp-admin/upload.php1,394 ▲64.33 ▲0.1495.96 ▼11.3541.61 ▼6.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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 everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Add new business certifications admin page.), #2 (Assign certifications to business directory listing.), #3 (Certification Content Block.), #4 (Certification widget display.)
The official readme.txt might help

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

The principal PHP file in "Connections Business Directory Certifications" v. 1.4.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-certifications.php" instead of "connections-certifications.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin904 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3271473704
PO File24976188
CSS11112

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
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

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