89% connections-business-directory-income-levels

Code Review | Connections Business Directory Income Level

WordPress plugin Connections Business Directory Income Level scored89%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,684 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.64ms] Passed 4 tests

An overview of server-side resources used by Connections Business Directory Income Level
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.10 ▼7.81
Dashboard /wp-admin3.36 ▲0.0549.23 ▼5.11
Posts /wp-admin/edit.php3.47 ▲0.1151.19 ▲0.12
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.02 ▼13.77
Media Library /wp-admin/upload.php3.28 ▲0.0540.39 ▲6.41

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

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

Browser metrics Passed 4 tests

Connections Business Directory Income Level: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲3314.72 ▲0.561.55 ▼0.1640.75 ▼2.13
Dashboard /wp-admin2,197 ▲205.53 ▼0.0688.71 ▼11.9441.55 ▼5.10
Posts /wp-admin/edit.php2,105 ▲21.98 ▼0.0241.13 ▲6.7637.67 ▲1.21
Add New Post /wp-admin/post-new.php1,533 ▲723.51 ▲0.04658.60 ▼34.2959.20 ▼19.10
Media Library /wp-admin/upload.php1,405 ▲54.29 ▲0.09101.61 ▼5.8643.49 ▼3.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

connections-business-directory-income-levels/connections_income_levels.php 85% from 13 tests

This is the main PHP file of "Connections Business Directory Income Level" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("connections-business-directory-income-levels.php" instead of "connections_income_levels.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected251 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2116288251

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.50
▷ Minimum class complexity6.00
▷ Maximum class complexity13.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1666.67%
▷ Public methods2083.33%
▷ Protected methods00.00%
▷ Private methods416.67%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
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