84% slack-woocommerce

Code Review | Slack WooCommerce

WordPress plugin Slack WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: slack-woocommerce
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Apr 18, 2014
  • Latest release: Feb 12, 2017
  • Number of updates: 5
  • Update frequency: every 206.2 days
  • Top authors: akeda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,742 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by Slack WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.24 ▼2.36
Dashboard /wp-admin3.31 ▼0.0446.95 ▼17.73
Posts /wp-admin/edit.php3.36 ▲0.0048.83 ▼4.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.22 ▼20.09
Media Library /wp-admin/upload.php3.23 ▲0.0032.72 ▼4.62

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slack WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.531.61 ▼0.0445.87 ▲4.08
Dashboard /wp-admin2,195 ▲185.63 ▲0.1194.28 ▲0.8443.91 ▲0.03
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0539.27 ▼6.2337.56 ▼0.77
Add New Post /wp-admin/post-new.php1,526 ▼022.97 ▼0.02656.10 ▲10.2449.64 ▼7.28
Media Library /wp-admin/upload.php1,397 ▼04.18 ▲0.01100.80 ▲0.5144.76 ▼1.39

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 were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/slack-woocommerce/slack-woocommerce.php:112

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: You can look at the official readme.txt

slack-woocommerce/slack-woocommerce.php Passed 13 tests

The principal PHP file in "Slack WooCommerce" v. 0.2.0 is loaded by WordPress automatically on each request
117 characters long description:
This plugin allows you to send notifications to Slack channels whenever payment in WooCommerce is marked as complete.

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
Good job! No executable or dangerous file extensions detected91 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1124060
Markdown120031

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
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%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin