78% chord-connect

Code Review | Chord Connect

WordPress plugin Chord Connect scored78%from 54 tests.

About plugin

  • Plugin page: chord-connect
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 6.3.1
  • First release: Jul 28, 2021
  • Latest release: Sep 21, 2021
  • Number of updates: 32
  • Update frequency: every 1.7 days
  • Top authors: cloudengage (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /431 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by Chord Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.69 ▼5.34
Dashboard /wp-admin3.33 ▲0.0247.31 ▼4.38
Posts /wp-admin/edit.php3.38 ▲0.0244.01 ▼2.79
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.50 ▼4.85
Media Library /wp-admin/upload.php3.25 ▲0.0233.72 ▼3.14
Chord Connect 1 /wp-admin/options-general.php?page=chordconnect3.1940.26

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
chordconnect_check_status
widget_recent-posts
chordconnect_script_url

Browser metrics Passed 4 tests

Checking browser requirements for Chord Connect
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲12813.92 ▼0.6421.54 ▲19.3538.15 ▼8.21
Dashboard /wp-admin2,237 ▲524.87 ▼1.0395.16 ▼20.5985.38 ▲42.24
Posts /wp-admin/edit.php2,117 ▲462.02 ▼0.0035.17 ▼2.3135.81 ▲1.41
Add New Post /wp-admin/post-new.php1,541 ▲1323.23 ▲4.79695.97 ▲54.3554.74 ▲4.85
Media Library /wp-admin/upload.php1,416 ▲344.20 ▲0.0499.96 ▲2.6282.44 ▲41.41
Chord Connect 1 /wp-admin/options-general.php?page=chordconnect8282.0222.7136.74

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=chordconnect
    • > Notice in wp-content/plugins/chord-connect/admin/class-chordconnect-admin.php+111
    Undefined index: chordconnect_check_timestamp
    • > GET request to /wp-admin/options-general.php?page=chordconnect
    • > Notice in wp-content/plugins/chord-connect/admin/templates/chordconnect-admin-settings.php+57
    Undefined variable: notices
    • > GET request to /wp-admin/options-general.php?page=chordconnect
    • > Notice in wp-content/plugins/chord-connect/admin/templates/chordconnect-admin-settings.php+65
    Undefined variable: form_header
    • > GET request to /wp-admin/options-general.php?page=chordconnect
    • > Notice in wp-content/plugins/chord-connect/admin/templates/chordconnect-admin-settings.php+67
    Undefined variable: intro_text
    • > GET request to /wp-admin/options-general.php?page=chordconnect
    • > Warning in wp-content/plugins/chord-connect/admin/templates/chordconnect-admin-settings.php+67
    implode(): Invalid arguments passed

SRP 50% from 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
Please fix the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Chordconnect_Base' not found in wp-content/plugins/chord-connect/public/class-chordconnect-public.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/chord-connect/admin/templates/chordconnect-admin-settings.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Chordconnect' not found in wp-content/plugins/chord-connect/admin/templates/chordconnect-notice.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Chordconnect_Base' not found in wp-content/plugins/chord-connect/admin/class-chordconnect-admin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: chordconnect, cloudengage

chord-connect/chordconnect.php 77% from 13 tests

Analyzing the main PHP file in "Chord Connect" version 1.0.4
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("chord-connect.php" instead of "chordconnect.php")

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
Everything looks great! No dangerous files found in this plugin644 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11220456500
CSS1304143
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.25
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes112.50%
▷ Concrete classes787.50%
▷ Final classes00.00%
Methods33
▷ Static methods39.09%
▷ Public methods2884.85%
▷ Protected methods13.03%
▷ Private methods412.12%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants18
▷ Global constants15.56%
▷ Class constants1794.44%
▷ Public constants17100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/chordconnect-logo.png10.04KB4.98KB▼ 50.38%