78% muca-free-shipping-bar-for-woo

Code Review | Ajax Free Shipping Bar for WooCommerce

WordPress plugin Ajax Free Shipping Bar for WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: muca-free-shippin...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.6
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Feb 13, 2021
  • Number of updates: 4
  • Update frequency: every 4.3 days
  • Top authors: mucasoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

An overview of server-side resources used by Ajax Free Shipping Bar for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0081.77 ▲4.95
Dashboard /wp-admin3.31 ▲0.0085.29 ▼11.61
Posts /wp-admin/edit.php3.36 ▲0.00100.32 ▲0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.00185.34 ▲30.37
Media Library /wp-admin/upload.php3.23 ▲0.0066.27 ▲3.74

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ajax Free Shipping Bar for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6414.34 ▲0.346.06 ▲2.5786.29 ▲10.53
Dashboard /wp-admin2,203 ▲185.04 ▲0.09267.26 ▲54.4094.81 ▼4.29
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0368.78 ▲0.7267.43 ▼10.88
Add New Post /wp-admin/post-new.php1,368 ▲817.80 ▲0.121,026.24 ▲65.2191.57 ▲5.09
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.17178.71 ▼4.7695.37 ▼3.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/muca-free-shipping-bar-for-woo/muca-free-shipping-bar-for-woo.php
  • 1× 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/muca-free-shipping-bar-for-woo/admin/class.menu.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

muca-free-shipping-bar-for-woo/muca-free-shipping-bar-for-woo.php 92% from 13 tests

The entry point to "Ajax Free Shipping Bar for WooCommerce" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin346 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP44131268
JavaScript39242
CSS20036

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.00
▷ Minimum class complexity2.00
▷ Maximum class complexity10.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods466.67%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin