83% ci-hub-connector

Code Review | CI HUB Connector

WordPress plugin CI HUB Connector scored83%from 54 tests.

About plugin

  • Plugin page: ci-hub-connector
  • Plugin version: 1.2.104
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: Apr 20, 2022
  • Latest release: Nov 15, 2023
  • Number of updates: 18
  • Update frequency: every 32.2 days
  • Top authors: cihubconnector (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,754 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 gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼6.25ms] Passed 4 tests

A check of server-side resources used by CI HUB Connector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1634.45 ▼4.82
Dashboard /wp-admin3.48 ▲0.1848.33 ▲0.76
Posts /wp-admin/edit.php3.60 ▲0.2454.34 ▲6.91
Add New Post /wp-admin/post-new.php6.06 ▲0.1781.33 ▼21.60
Media Library /wp-admin/upload.php3.38 ▲0.1633.19 ▲0.66

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CI HUB Connector
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17014.65 ▲0.291.62 ▼0.2043.69 ▲3.07
Dashboard /wp-admin2,337 ▲1576.15 ▲0.46122.04 ▲27.3442.37 ▲1.04
Posts /wp-admin/edit.php2,271 ▲1683.35 ▲1.3953.70 ▲12.6336.58 ▼0.86
Add New Post /wp-admin/post-new.php1,531 ▲523.41 ▲0.12688.57 ▲36.1536.67 ▼19.66
Media Library /wp-admin/upload.php1,412 ▲154.17 ▼0.0379.87 ▼21.5742.24 ▼1.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ci-hub-connector/ci-hub-wordpress-connector.php:50

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (13 tag instead of maximum 10)
You can look at the official readme.txt

ci-hub-connector/ci-hub-wordpress-connector.php 85% from 13 tests

The principal PHP file in "CI HUB Connector" v. 1.2.104 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ci-hub-connector.php" instead of "ci-hub-wordpress-connector.php")
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

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
Success! There were no dangerous files found in this plugin674 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19347568
JavaScript1116106

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions1246.15%
▷ Anonymous functions1453.85%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin