83% change-cart-word-for-woocommerce

Code Review | Change Cart Word for Woocommerce

WordPress plugin Change Cart Word for Woocommerce scored 83% from 54 tests.

About plugin

  • Plugin page: change-cart-word-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.2.4
  • WordPress version: 6.3.1
  • First release: Mar 18, 2020
  • Latest release: Mar 18, 2020
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: jtnatoli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 514 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.00MB] [CPU: ▼2.41ms] Passed 4 tests

A check of server-side resources used by Change Cart Word for Woocommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.98 ▼3.14
Dashboard /wp-admin3.31 ▲0.0053.16 ▲5.90
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▼0.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.75 ▼4.25
Media Library /wp-admin/upload.php3.23 ▲0.0033.96 ▼1.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Change Cart Word for Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.26 ▼1.116.25 ▲4.4244.55 ▼7.46
Dashboard /wp-admin2,206 ▲184.85 ▼0.0297.94 ▼20.7739.28 ▼9.38
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0236.76 ▲1.0232.44 ▼4.12
Add New Post /wp-admin/post-new.php1,545 ▲2518.35 ▼4.78585.90 ▼91.8849.86 ▼15.93
Media Library /wp-admin/upload.php1,385 ▼64.24 ▲0.0999.67 ▼3.7542.60 ▼3.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 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/change-cart-word-for-woocommerce/dgd-woocommerce-change-cart-word.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: change cart, woocommerce, change to basket, cart, bag...

change-cart-word-for-woocommerce/dgd-woocommerce-change-cart-word.php 77% from 13 tests

This is the main PHP file of "Change Cart Word for Woocommerce" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 154 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("change-cart-word-for-woocommerce.php" instead of "dgd-woocommerce-change-cart-word.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181342

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.53
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.27MB with 0.16MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png273.35KB80.48KB▼ 70.56%
assets/icon-256x256.png7.69KB4.28KB▼ 44.33%