84% platform-notification-for-woocommerce

Code Review | Platform Notification For WooCommerce - Get notification on different platform on WooCommerce action

WordPress plugin Platform Notification For WooCommerce - Get notification on different platform on WooCommerce action scored84%from 54 tests.

About plugin

  • Plugin page: platform-notifica...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 1, 2022
  • Latest release: Jul 12, 2022
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: rafiahmedd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /541 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
Install script ran successfully

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

A check of server-side resources used by Platform Notification For WooCommerce - Get notification on different platform on WooCommerce action
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.85 ▼5.16
Dashboard /wp-admin3.36 ▲0.0152.16 ▼18.44
Posts /wp-admin/edit.php3.48 ▲0.1254.83 ▲3.21
Add New Post /wp-admin/post-new.php5.95 ▲0.0585.65 ▼20.62
Media Library /wp-admin/upload.php3.29 ▲0.0538.66 ▼1.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Platform Notification For WooCommerce - Get notification on different platform on WooCommerce action
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.30 ▼0.061.84 ▼0.0043.55 ▼1.25
Dashboard /wp-admin2,195 ▲155.66 ▲0.0191.44 ▲2.1541.49 ▼1.79
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0241.93 ▲1.2737.32 ▲5.46
Add New Post /wp-admin/post-new.php1,526 ▼022.85 ▼0.22662.25 ▼43.3970.82 ▲8.64
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.0294.87 ▼21.3044.62 ▼3.30

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 3× 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/platform-notification-for-woocommerce/platform-notification-for-woocommerce.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/platform-notification-for-woocommerce/app/Slack/SlackIntegration.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/platform-notification-for-woocommerce/app/Discord/DiscordIntegration.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: The official readme.txt might help

platform-notification-for-woocommerce/platform-notification-for-woocommerce.php Passed 13 tests

"Platform Notification For WooCommerce - Get notification on different platform on WooCommerce action" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Get notification on different platform on WooCommerce action

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin757 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP18159273740
JSON11017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity5.64
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1122.92%
▷ Public methods4491.67%
▷ Protected methods00.00%
▷ Private methods48.33%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin