89% intelligencebank-connector

Code Review | IntelligenceBank Connector

WordPress plugin IntelligenceBank Connector scored89%from 54 tests.

About plugin

  • Plugin page: intelligencebank-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: May 11, 2023
  • Number of updates: 14
  • Update frequency: every 133.1 days
  • Top authors: intelligencebank (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,018 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.31ms] Passed 4 tests

This is a short check of server-side resources used by IntelligenceBank Connector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0941.56 ▲1.26
Dashboard /wp-admin3.38 ▲0.0851.62 ▼0.31
Posts /wp-admin/edit.php3.49 ▲0.1446.96 ▼3.31
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.63 ▼13.20
Media Library /wp-admin/upload.php3.31 ▲0.0837.40 ▼0.43

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for IntelligenceBank Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6014.70 ▲0.091.88 ▲0.3643.87 ▼0.27
Dashboard /wp-admin2,202 ▲285.58 ▲0.0595.94 ▲5.8044.76 ▲0.93
Posts /wp-admin/edit.php2,110 ▲102.01 ▲0.0036.08 ▼6.1332.97 ▼7.96
Add New Post /wp-admin/post-new.php6,204 ▲4,67826.28 ▲3.05901.74 ▲218.6438.78 ▼15.54
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.04102.37 ▼17.1742.25 ▼5.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

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)
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
Attributes that need to be fixed: Please take inspiration from this readme.txt

intelligencebank-connector/ib-connector.php 85% from 13 tests

"IntelligenceBank Connector" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("intelligencebank-connector.php" instead of "ib-connector.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin338 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP482150335
JavaScript2002
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity19.00
▷ Minimum class complexity5.00
▷ Maximum class complexity33.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods950.00%
▷ Protected methods00.00%
▷ Private methods950.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants1
▷ Global constants1100.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 were not PNG files found in your plugin