83% connections-business-directory-education-levels

Code Review | Connections Business Directory Education Level

WordPress plugin Connections Business Directory Education Level scored83%from 54 tests.

About plugin

  • Plugin page: connections-busin...
  • Plugin version: 3.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: May 15, 2014
  • Latest release: Jun 13, 2023
  • Number of updates: 46
  • Update frequency: every 72.1 days
  • Top authors: shazahm1@hotmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /6,398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by Connections Business Directory Education Level
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.05 ▼1.22
Dashboard /wp-admin3.35 ▲0.0446.08 ▼5.28
Posts /wp-admin/edit.php3.46 ▲0.1145.31 ▲2.43
Add New Post /wp-admin/post-new.php5.93 ▲0.0494.43 ▼8.65
Media Library /wp-admin/upload.php3.27 ▲0.0431.58 ▼2.40

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Connections Business Directory Education 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,806 ▲6013.24 ▼1.221.87 ▲0.2342.91 ▼0.92
Dashboard /wp-admin2,215 ▲274.89 ▼1.01102.16 ▼5.5143.22 ▲4.91
Posts /wp-admin/edit.php2,094 ▲52.00 ▼0.0437.88 ▼2.7735.26 ▼1.68
Add New Post /wp-admin/post-new.php1,551 ▲3718.50 ▲0.96653.42 ▲11.3451.47 ▲0.66
Media Library /wp-admin/upload.php1,394 ▲94.32 ▲0.1296.18 ▼5.4142.11 ▼3.14

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
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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: Class 'Connections_Directory\\Content_Block' not found in wp-content/plugins/connections-business-directory-education-levels/includes/Content_Blocks/Education_Level.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (54 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

connections-business-directory-education-levels/connections_education_levels.php 85% from 13 tests

"Connections Business Directory Education Level" version 3.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("connections-business-directory-education-levels.php" instead of "connections_education_levels.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin403 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3138329276
PO File24149127

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.33
▷ Minimum class complexity3.00
▷ Maximum class complexity13.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods27
▷ Static methods1659.26%
▷ Public methods2488.89%
▷ Protected methods00.00%
▷ Private methods311.11%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin