10% buybot-notifications

Code Review | Green Receipt- WhatsApp Commerce

WordPress plugin Green Receipt- WhatsApp Commerce scored10%from 54 tests.

About plugin

  • Plugin page: buybot-notifications
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8 or higher-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2021
  • Latest release: Apr 28, 2023
  • Number of updates: 20
  • Update frequency: every 29.1 days
  • Top authors: buynxt1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Warning in wp-content/plugins/buybot-notifications/core/order.class.php+11
    require_once(/wp-content/plugins/woocommerce/includes/wc-cart-functions.php): failed to open stream: No such file or directory

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

Server-side resources used by Green Receipt- WhatsApp Commerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.68 ▼2.30
Dashboard /wp-admin3.31 ▲0.0044.13 ▼5.37
Posts /wp-admin/edit.php3.36 ▲0.0043.81 ▼2.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.44 ▲4.53
Media Library /wp-admin/upload.php3.23 ▲0.0032.58 ▼0.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Green Receipt- WhatsApp Commerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.141.66 ▼0.0938.85 ▼7.57
Dashboard /wp-admin2,206 ▲155.77 ▲0.8996.24 ▼8.2439.79 ▲1.68
Posts /wp-admin/edit.php2,089 ▲182.01 ▼0.0240.97 ▲5.3936.60 ▼1.24
Add New Post /wp-admin/post-new.php1,544 ▲3018.57 ▲1.10582.44 ▼122.7950.74 ▲2.64
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0491.89 ▼16.2940.20 ▼10.05

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: Version format is invalid
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

buybot-notifications/buybotnotifications.php 69% from 13 tests

Analyzing the main PHP file in "Green Receipt- WhatsApp Commerce" version 1.0.3
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.8 or higher")
  • Requires PHP: Required version number should only contain digits separated by dots (ex. "7.0" instead of "5.6 or higher")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buybot-notifications.php" instead of "buybotnotifications.php")

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
Success! There were no dangerous files found in this plugin755 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP3205101661
CSS226093
JavaScript218941

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin