99% extra-settings-for-rocketchat

Code Review | Extra Settings for RocketChat

WordPress plugin Extra Settings for RocketChat scored 99% from 54 tests.

About plugin

  • Plugin page: extra-settings-fo...
  • Plugin version: 0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3.2
  • WordPress version: 5.8.1
  • First release: Feb 25, 2020
  • Latest release: Feb 25, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: andrewabarber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 304 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼140.72ms] Passed 4 tests

Server-side resources used by Extra Settings for RocketChat
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1543.47 ▲22.37
Dashboard /wp-admin3.11 ▲0.0551.49 ▲4.93
Posts /wp-admin/edit.php3.16 ▲0.0549.01 ▲2.66
Add New Post /wp-admin/post-new.php5.46 ▲0.0394.72 ▼569.43
Media Library /wp-admin/upload.php3.05 ▲0.0435.39 ▼1.05

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Extra Settings for RocketChat
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,734 ▲12815.87 ▲0.349.20 ▼0.6050.88 ▼2.34
Dashboard /wp-admin2,990 ▲565.87 ▼0.10149.01 ▼6.69111.70 ▼11.08
Posts /wp-admin/edit.php2,759 ▲202.70 ▼0.1366.34 ▼2.6799.84 ▲1.07
Add New Post /wp-admin/post-new.php1,513 ▼17018.63 ▲2.45380.61 ▼23.00117.44 ▲1.66
Media Library /wp-admin/upload.php1,827 ▲205.03 ▲0.01155.44 ▼25.14136.74 ▲9.79

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: woocommerce, rocketchat, livechat

extra-settings-for-rocketchat/rocketchat-extra-settings.php 77% from 13 tests

Analyzing the main PHP file in "Extra Settings for RocketChat" version 0.1
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("extra-settings-for-rocketchat.php" instead of "rocketchat-extra-settings.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin301 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP34659275
CSS22025
Markdown1001

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.35
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%
Functions13
▷ Named functions13100.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
There were not PNG files found in your plugin