83% change-wc-price-title

Code Review | Change Price Title for WooCommerce

WordPress plugin Change Price Title for WooCommerce scored 83% from 54 tests.

About plugin

  • Plugin page: change-wc-price-t...
  • Plugin version: 2.3
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 24, 2017
  • Latest release: Jul 8, 2023
  • Number of updates: 46
  • Update frequency: every 48.0 days
  • Top authors: kartikparmar (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 14,530 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
Installer ran successfully

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

An overview of server-side resources used by Change Price Title for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.66 ▼0.10
Dashboard /wp-admin3.31 ▲0.0144.43 ▼3.94
Posts /wp-admin/edit.php3.36 ▲0.0043.92 ▼6.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.76 ▼8.51
Media Library /wp-admin/upload.php3.23 ▲0.0038.50 ▲6.90
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius3.0021.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 172 new files
Database: no new tables, 11 new options
New WordPress options
fs_accounts
fs_debug_mode
db_upgraded
fs_gdpr
widget_recent-posts
can_compress_scripts
fs_active_plugins
widget_recent-comments
change_woocommerce_price_title_db_version
theysaidso_admin_options
...

Browser metrics Passed 4 tests

A check of browser resources used by Change Price Title for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.36 ▼1.011.98 ▲0.1543.81 ▼4.76
Dashboard /wp-admin2,209 ▲175.86 ▲0.92102.00 ▼7.7140.16 ▼1.81
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0433.29 ▼7.6335.37 ▲0.02
Add New Post /wp-admin/post-new.php1,534 ▲123.35 ▲0.10686.94 ▲16.3159.85 ▲9.48
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.06106.86 ▼4.1544.85 ▼3.59
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius280.440.073.60

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • can_compress_scripts
    • fs_accounts
    • fs_debug_mode
    • fs_gdpr
    • fs_active_plugins
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=freemius
    • > Network (severe)
    wp-admin/admin.php?page=freemius - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: woocommerce price, title, change, remove, price

change-wc-price-title/change-wc-price-title.php 85% from 13 tests

The main file in "Change Price Title for WooCommerce" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.3" instead of "3.0.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 244 characters long)

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected31,194 lines of code in 127 files:
LanguageFilesBlank linesComment linesLines of code
PHP1097,33616,20830,661
JavaScript43860217
Markdown1680214
PO File1242661
JSON10027
CSS110014

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity89.07
▷ Minimum class complexity1.00
▷ Maximum class complexity2,911.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes46
▷ Abstract classes24.35%
▷ Concrete classes4495.65%
▷ Final classes00.00%
Methods1,147
▷ Static methods17615.34%
▷ Public methods80770.36%
▷ Protected methods151.31%
▷ Private methods32528.33%
Functions95
▷ Named functions95100.00%
▷ Anonymous functions00.00%
Constants123
▷ Global constants9879.67%
▷ Class constants2520.33%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%