89% connections-business-directory-hobbies

Code Review | Connections Business Directory Hobbies

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Connections Business Directory Hobbies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0736.05 ▼8.64
Dashboard /wp-admin3.37 ▲0.0749.36 ▲0.27
Posts /wp-admin/edit.php3.42 ▲0.0755.05 ▲4.36
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.92 ▲2.44
Media Library /wp-admin/upload.php3.30 ▲0.0736.32 ▲1.55

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Connections Business Directory Hobbies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.26 ▼1.011.80 ▲0.0440.43 ▼4.50
Dashboard /wp-admin2,209 ▲185.80 ▲0.7795.87 ▼8.8843.70 ▲2.11
Posts /wp-admin/edit.php2,094 ▲21.98 ▼0.0241.47 ▲4.8338.81 ▲3.22
Add New Post /wp-admin/post-new.php1,539 ▲623.18 ▲0.01611.25 ▼54.8254.36 ▼1.96
Media Library /wp-admin/upload.php1,397 ▲124.22 ▼0.0096.34 ▼10.7243.36 ▼4.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP 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 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 need to be fixed:
  • Tags: Please delete some tags, you are using 53 tag instead of maximum 10
You can look at the official readme.txt

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

The main PHP file in "Connections Business Directory Hobbies" ver. 1.0.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:
  • Main file name: Name the main plugin file the same as the plugin slug ("connections-business-directory-hobbies.php" instead of "connections-hobbies.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,125 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File2308316809
PHP291217316

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods1066.67%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected