78% talkbe-notification-api-for-woocommerce

Code Review | Talkbe For WooCommerce

WordPress plugin Talkbe For WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: talkbe-notificati...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Jul 17, 2023
  • Latest release: Jul 17, 2023
  • Number of updates: 3
  • Update frequency: every 13.7 days
  • Top authors: talkbe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

An overview of server-side resources used by Talkbe For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.10 ▲2.49
Dashboard /wp-admin3.35 ▲0.0445.93 ▼2.33
Posts /wp-admin/edit.php3.40 ▲0.0447.26 ▼7.81
Add New Post /wp-admin/post-new.php5.93 ▲0.0484.62 ▼19.60
Media Library /wp-admin/upload.php3.27 ▲0.0436.63 ▲3.69

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
woocommerce_talkbe_status
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Talkbe For WooCommerce
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.081.74 ▲0.1841.03 ▼4.08
Dashboard /wp-admin2,195 ▲155.62 ▼0.0186.03 ▼5.7543.86 ▲3.53
Posts /wp-admin/edit.php2,079 ▼211.95 ▼0.0636.85 ▼0.7333.06 ▼3.07
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▼0.89622.71 ▼61.2755.16 ▼1.58
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0194.35 ▼4.6243.75 ▼2.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • woocommerce_talkbe_status
    • widget_recent-posts

Smoke tests 50% from 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 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/talkbe-notification-api-for-woocommerce/talkbe.php
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/talkbe-notification-api-for-woocommerce/uninstall.php on line 3
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/talkbe-notification-api-for-woocommerce/uninstall.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/talkbe-notification-api-for-woocommerce/uninstall.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/talkbe-notification-api-for-woocommerce/template/talkbe-view.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: notification, api, whatsapp, talkbe

talkbe-notification-api-for-woocommerce/talkbe.php 92% from 13 tests

"Talkbe For WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("talkbe-notification-api-for-woocommerce.php" instead of "talkbe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected408 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP44140408

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/green-check.png4.40KB2.04KB▼ 53.55%
assets/images/logo-talkbe-v4.png2.52KB1.15KB▼ 54.34%
assets/images/add-icon.png3.12KB1.88KB▼ 39.66%