84% blue-sky-chat

Code Review | Blue Sky Chat

WordPress plugin Blue Sky Chat scored84%from 54 tests.

About plugin

  • Plugin page: blue-sky-chat
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.7
  • WordPress version: 6.3.1
  • First release: Mar 7, 2017
  • Latest release: Jul 23, 2018
  • Number of updates: 19
  • Update frequency: every 26.1 days
  • Top authors: blueskychat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.18ms] Passed 4 tests

Server-side resources used by Blue Sky Chat
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.90 ▼1.60
Dashboard /wp-admin3.31 ▲0.0045.07 ▼8.37
Posts /wp-admin/edit.php3.36 ▲0.0048.12 ▲2.42
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.27 ▼9.18
Media Library /wp-admin/upload.php3.23 ▲0.0037.14 ▲6.18

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Blue Sky Chat
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.81 ▼0.525.33 ▲2.7441.07 ▼7.69
Dashboard /wp-admin2,206 ▲184.87 ▲0.0095.62 ▼12.7338.59 ▼5.61
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0539.90 ▲4.4237.49 ▲3.12
Add New Post /wp-admin/post-new.php1,534 ▼823.37 ▲5.35653.36 ▲49.8450.42 ▼17.58
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.0195.25 ▼6.7743.22 ▼3.05

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blue-sky-chat/blue-sky-chat.php:12

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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 require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === blue-sky-chat === )
The official readme.txt is a good inspiration

blue-sky-chat/blue-sky-chat.php Passed 13 tests

"Blue Sky Chat" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
This plugin is a Sky Chat modification for multisite wordpress websites

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
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17918

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected