10% bluetrait-connector-client

Code Review | Bluetrait Connector Client

WordPress plugin Bluetrait Connector Client scored10%from 54 tests.

About plugin

  • Plugin page: bluetrait-connect...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2013
  • Latest release: Oct 23, 2016
  • Number of updates: 11
  • Update frequency: every 97.1 days
  • Top authors: mwdmeyer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /984 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▼0.88MB] [CPU: ▼33.02ms] Passed 4 tests

Server-side resources used by Bluetrait Connector Client
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.70 ▲7.86
Dashboard /wp-admin3.07 ▼0.2723.11 ▼36.19
Posts /wp-admin/edit.php3.07 ▼0.2825.61 ▼19.38
Add New Post /wp-admin/post-new.php3.07 ▼2.8124.66 ▼69.24
Media Library /wp-admin/upload.php3.07 ▼0.1623.25 ▼7.25
Bluetrait /wp-admin/options-general.php?page=sts_settings3.0724.61

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
sts_config
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Bluetrait Connector Client
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.175.46 ▲3.9640.91 ▲1.21
Dashboard /wp-admin2,210 ▲185.85 ▲0.9398.62 ▼7.1640.50 ▼4.40
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0044.48 ▲8.3534.95 ▼2.09
Add New Post /wp-admin/post-new.php1,541 ▲2723.09 ▲5.53648.95 ▼19.9051.50 ▲0.09
Media Library /wp-admin/upload.php1,392 ▲44.22 ▲0.0593.18 ▼0.2441.27 ▼2.17
Bluetrait /wp-admin/options-general.php?page=sts_settings8512.0725.7726.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • sts_config
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=sts_settings
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/bluetrait-connector-client/sts.php

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

bluetrait-connector-client/sts.php 92% from 13 tests

Analyzing the main PHP file in "Bluetrait Connector Client" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("bluetrait-connector-client.php" instead of "sts.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
Success! There were no dangerous files found in this plugin548 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11180116548

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.90
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods35
▷ Static methods12.86%
▷ Public methods3394.29%
▷ Protected methods00.00%
▷ Private methods25.71%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin