89% muambator-webhooks-para-woocommerce

Code Review | Muambator Webhooks para WooCommerce

WordPress plugin Muambator Webhooks para WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: muambator-webhook...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.3-4.9
  • WordPress version: 6.3.1
  • First release: Sep 6, 2018
  • Latest release: Oct 11, 2018
  • Number of updates: 13
  • Update frequency: every 2.7 days
  • Top authors: devopsbode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,164 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Server-side resources used by Muambator Webhooks para WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0050.99 ▲3.93
Dashboard /wp-admin3.31 ▲0.0050.37 ▼22.10
Posts /wp-admin/edit.php3.36 ▲0.0054.93 ▲0.50
Add New Post /wp-admin/post-new.php5.89 ▲0.0099.52 ▲6.30
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▼5.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Muambator Webhooks para WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.25 ▼0.541.83 ▼0.3640.89 ▼5.10
Dashboard /wp-admin2,206 ▲184.86 ▼1.02110.74 ▼6.1039.46 ▼4.55
Posts /wp-admin/edit.php2,092 ▲31.99 ▲0.0241.80 ▲3.7235.37 ▲1.90
Add New Post /wp-admin/post-new.php1,520 ▲123.44 ▲2.09631.63 ▼77.5952.71 ▼10.59
Media Library /wp-admin/upload.php1,382 ▼34.17 ▼0.03106.83 ▲7.4147.85 ▼0.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: correios, webhooks, muambator, entregas, delivery...

muambator-webhooks-para-woocommerce/mb-webhook-woocommerce.php 85% from 13 tests

The principal PHP file in "Muambator Webhooks para WooCommerce" v. 1.1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "3.4.3")
  • Main file name: Name the main plugin file the same as the plugin slug ("muambator-webhooks-para-woocommerce.php" instead of "mb-webhook-woocommerce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected552 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP893108552

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods327.27%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
7 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/blue.png2.38KB2.10KB▼ 11.96%
assets/img/red.png2.04KB2.03KB0.43%
assets/img/orange.png2.10KB1.86KB▼ 11.27%
assets/img/global.png2.75KB2.35KB▼ 14.44%
assets/img/yellow.png2.39KB2.15KB▼ 10.14%