84% supo-talk-widget

Code Review | Supo Talk Widget

WordPress plugin Supo Talk Widget scored84%from 54 tests.

About plugin

  • Plugin page: supo-talk-widget
  • Plugin version: 0.02
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2018
  • Latest release: Apr 24, 2019
  • Number of updates: 7
  • Update frequency: every 34.7 days
  • Top authors: supoonline (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by Supo Talk Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0725.35 ▼12.45
Dashboard /wp-admin3.32 ▲0.0247.70 ▼1.71
Posts /wp-admin/edit.php3.37 ▲0.0147.58 ▼0.03
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.34 ▼9.75
Media Library /wp-admin/upload.php3.24 ▲0.0135.52 ▼0.06
Supo Talk Widget Settings /wp-admin/options-general.php?page=stwwp_supo-talk-widget-admin3.2129.73

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Supo Talk Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,315 ▲55813.32 ▼0.9717.04 ▲15.1935.69 ▼5.39
Dashboard /wp-admin2,210 ▲254.85 ▼0.02110.43 ▲6.5940.11 ▼1.37
Posts /wp-admin/edit.php2,093 ▲12.13 ▲0.1338.71 ▲1.7534.06 ▲4.14
Add New Post /wp-admin/post-new.php1,537 ▼523.25 ▲4.99623.23 ▼16.9453.71 ▼9.57
Media Library /wp-admin/upload.php1,395 ▲74.21 ▲0.0396.37 ▼2.5741.65 ▼4.65
Supo Talk Widget Settings /wp-admin/options-general.php?page=stwwp_supo-talk-widget-admin7792.0327.3728.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/supo-talk-widget/supo-talk-widget.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: chat widget, support, live chat, live support

supo-talk-widget/supo-talk-widget.php 92% from 13 tests

The primary PHP file in "Supo Talk Widget" version 0.02 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "2.3.0")

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 detected124 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1174988
PO File191136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.29
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin