83% connections-business-directory-face-detect

Code Review | Connections Business Directory Face Detect

WordPress plugin Connections Business Directory Face Detect scored83%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 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: Sep 17, 2014
  • Latest release: Apr 3, 2023
  • Number of updates: 24
  • Update frequency: every 130.0 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,440 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.82ms] Passed 4 tests

Analyzing server-side resources used by Connections Business Directory Face Detect
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.68 ▼3.63
Dashboard /wp-admin3.33 ▲0.0344.83 ▼3.70
Posts /wp-admin/edit.php3.38 ▲0.0247.96 ▼3.34
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.04 ▼8.06
Media Library /wp-admin/upload.php3.25 ▲0.0232.59 ▼3.87

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Connections Business Directory Face Detect
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.54 ▼1.111.67 ▼0.1438.44 ▼6.32
Dashboard /wp-admin2,209 ▲215.83 ▲0.96101.51 ▼2.9743.03 ▲0.68
Posts /wp-admin/edit.php2,097 ▲112.01 ▼0.0040.38 ▲4.8736.85 ▲4.16
Add New Post /wp-admin/post-new.php1,548 ▲1318.01 ▼4.95612.35 ▼70.1265.26 ▲18.53
Media Library /wp-admin/upload.php1,388 ▲34.26 ▲0.0194.09 ▼8.0041.24 ▼4.84

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Async_Task' not found in wp-content/plugins/connections-business-directory-face-detect/includes/async-task.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (51 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

connections-business-directory-face-detect/connections-face-detect.php 69% from 13 tests

The main PHP file in "Connections Business Directory Face Detect" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("connections-business-directory-face-detect.php" instead of "connections-face-detect.php")
  • 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected588 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4182282485
Markdown2420103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity16.25
▷ Minimum class complexity5.00
▷ Maximum class complexity33.00
Average method complexity3.23
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods29
▷ Static methods517.24%
▷ Public methods1655.17%
▷ Protected methods1137.93%
▷ Private methods26.90%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants8
▷ Global constants562.50%
▷ Class constants337.50%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin