89% chat-button-nsi

Code Review | Chat Button Ninetyseven Infotech

WordPress plugin Chat Button Ninetyseven Infotech scored89%from 54 tests.

About plugin

  • Plugin page: chat-button-nsi
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: May 13, 2021
  • Latest release: Feb 9, 2023
  • Number of updates: 4
  • Update frequency: every 159.5 days
  • Top authors: sutharkaran10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.97ms] Passed 4 tests

Server-side resources used by Chat Button Ninetyseven Infotech
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.59 ▼8.06
Dashboard /wp-admin3.32 ▲0.0241.24 ▼9.36
Posts /wp-admin/edit.php3.37 ▲0.0247.94 ▲2.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.67 ▼13.21
Media Library /wp-admin/upload.php3.24 ▲0.0234.45 ▲3.92

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Chat Button Ninetyseven Infotech
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.62 ▼0.781.64 ▼0.0236.57 ▼7.39
Dashboard /wp-admin2,208 ▲204.86 ▼0.24113.46 ▼1.6242.19 ▼5.11
Posts /wp-admin/edit.php2,094 ▲52.03 ▲0.0235.41 ▼1.0631.64 ▼1.48
Add New Post /wp-admin/post-new.php1,519 ▼217.68 ▼5.19608.91 ▼22.8955.51 ▲4.54
Media Library /wp-admin/upload.php1,390 ▲24.20 ▼0.0597.82 ▼0.8939.79 ▼7.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: Please add an image for screenshot #5 (Button Style 4)
Please take inspiration from this readme.txt

chat-button-nsi/chat-button-nsi.php Passed 13 tests

"Chat Button Ninetyseven Infotech" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
139 characters long description:
Chat Button Ninetyseven Infotech for WordPress allows your customers to open a conversation from your website directly to your phone number

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin306 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS122202
PHP3243594
SVG10010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin