89% mmwd-remove-add-to-cart-for-woocommerce

Code Review | MMWD Remove Add To Cart for WooCommerce

WordPress plugin MMWD Remove Add To Cart for WooCommerce scored89%from 54 tests.

About plugin

  • Plugin page: mmwd-remove-add-t...
  • Plugin version: 1.4.21
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Aug 28, 2023
  • Number of updates: 69
  • Update frequency: every 35.4 days
  • Top authors: mcgregormedia (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

5,000+ active /66,836 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by MMWD Remove Add To Cart for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.67 ▲0.66
Dashboard /wp-admin3.31 ▲0.0046.16 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0043.44 ▼7.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.76 ▼10.98
Media Library /wp-admin/upload.php3.23 ▲0.0034.43 ▲2.31

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for MMWD Remove Add To Cart for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.001.90 ▲0.2441.69 ▲2.88
Dashboard /wp-admin2,198 ▲185.64 ▲0.0392.50 ▲1.5041.47 ▼1.26
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0234.41 ▼1.4533.22 ▼2.05
Add New Post /wp-admin/post-new.php1,526 ▼223.51 ▲0.04683.98 ▲27.7753.72 ▼10.18
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.05108.21 ▲0.2648.19 ▲1.65

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% 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
No tags were found

mmwd-remove-add-to-cart-for-woocommerce/mmwd-remove-add-to-cart-for-woocommerce.php 85% from 13 tests

Analyzing the main PHP file in "MMWD Remove Add To Cart for WooCommerce" version 1.4.21
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "3.0")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin131 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP114210497
PO File151134

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin