10% woo-price-trim-zeros

Code Review | Woocommerce Remove 00 Trailing Zero

WordPress plugin Woocommerce Remove 00 Trailing Zero scored10%from 54 tests.

About plugin

  • Plugin page: woo-price-trim-zeros
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Feb 11, 2019
  • Number of updates: 10
  • Update frequency: every 0.6 days
  • Top authors: therichpost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /560 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/woo-price-trim-zeros/woocommerce-remove-00trailing-zero.php+12
    Constant Woocommerce_Remove_00trailing_Zero already defined

Server metrics [RAM: ▼1.96MB] [CPU: ▼53.40ms] Passed 4 tests

Server-side resources used by Woocommerce Remove 00 Trailing Zero
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.73 ▼35.73
Dashboard /wp-admin2.05 ▼1.266.41 ▼46.40
Posts /wp-admin/edit.php2.05 ▼1.315.10 ▼44.27
Add New Post /wp-admin/post-new.php2.05 ▼3.846.18 ▼87.20
Media Library /wp-admin/upload.php2.05 ▼1.185.60 ▼31.99

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Woocommerce Remove 00 Trailing Zero: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.32 ▼0.292.09 ▼0.0744.14 ▼2.53
Dashboard /wp-admin2,192 ▲185.53 ▼0.1281.52 ▼17.5340.20 ▼6.11
Posts /wp-admin/edit.php2,100 ▼02.08 ▲0.1434.93 ▼0.4332.73 ▼5.90
Add New Post /wp-admin/post-new.php1,526 ▼023.60 ▲0.90639.56 ▼39.0747.83 ▼12.85
Media Library /wp-admin/upload.php1,400 ▲64.21 ▲0.0195.88 ▼7.7242.53 ▼2.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/woo-price-trim-zeros/woocommerce-remove-00trailing-zero.php+12
    Constant Woocommerce_Remove_00trailing_Zero already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woo-price-trim-zeros/woocommerce-remove-00trailing-zero.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention: You can take inspiration from this readme.txt

woo-price-trim-zeros/woocommerce-remove-00trailing-zero.php 92% from 13 tests

The main PHP script in "Woocommerce Remove 00 Trailing Zero" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-price-trim-zeros.php" instead of "woocommerce-remove-00trailing-zero.php")

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 plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1297

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin