84% chatterbox

Code Review | Chatterbox

WordPress plugin Chatterbox scored84%from 54 tests.

About plugin

  • Plugin page: chatterbox
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2020
  • Latest release: Apr 22, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: dryanpress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,129 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Chatterbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0147.68 ▲5.06
Dashboard /wp-admin3.31 ▲0.0150.46 ▼0.66
Posts /wp-admin/edit.php3.36 ▲0.0052.26 ▲4.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.49 ▼6.72
Media Library /wp-admin/upload.php3.23 ▲0.0036.41 ▲0.16

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Chatterbox: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.75 ▲0.381.96 ▼0.2744.28 ▲2.61
Dashboard /wp-admin2,195 ▲155.65 ▼0.0588.52 ▼0.6439.53 ▼4.22
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0340.73 ▲4.8334.71 ▼3.37
Add New Post /wp-admin/post-new.php6,366 ▲4,82527.79 ▲9.28865.70 ▲206.7354.93 ▼1.78
Media Library /wp-admin/upload.php1,400 ▲34.30 ▲0.0998.29 ▼5.8344.69 ▼1.20

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chatterbox/chatterbox.php:62

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4 in chatterbox/assets to your readme.txt
The official readme.txt is a good inspiration

chatterbox/chatterbox.php Passed 13 tests

The principal PHP file in "Chatterbox" v. 0.1.1 is loaded by WordPress automatically on each request
74 characters long description:
Create chat threads using WordPress Blocks inside app and device wrappers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin357 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS2101279
PHP471246
Markdown113030
JavaScript1042

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
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
Namespaces1
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin