89% woo-round-up-prices

Code Review | Round Up Woocommerce Catalog Prices

WordPress plugin Round Up Woocommerce Catalog Prices scored89%from 54 tests.

About plugin

  • Plugin page: woo-round-up-prices
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Jan 7, 2018
  • Latest release: Jan 7, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: neevalex (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.99ms] Passed 4 tests

Analyzing server-side resources used by Round Up Woocommerce Catalog Prices
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.31 ▼1.99
Dashboard /wp-admin3.32 ▲0.0247.18 ▼8.92
Posts /wp-admin/edit.php3.37 ▲0.0146.37 ▲0.45
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.37 ▼13.51
Media Library /wp-admin/upload.php3.24 ▲0.0135.69 ▲0.47

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Round Up Woocommerce Catalog Prices
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.29 ▼0.941.54 ▼0.1540.45 ▼1.59
Dashboard /wp-admin2,220 ▲326.04 ▲0.98109.79 ▲8.2843.43 ▼4.75
Posts /wp-admin/edit.php2,106 ▲172.04 ▲0.0140.34 ▲1.8235.20 ▲2.15
Add New Post /wp-admin/post-new.php1,542 ▲2823.32 ▲5.67658.05 ▲44.8156.78 ▼1.62
Media Library /wp-admin/upload.php1,399 ▲114.22 ▼0.03104.43 ▲4.9245.49 ▼0.56

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: good looking prices, round up prices, woocomerce prices, round prices, round up...

woo-round-up-prices/woo-round-up-prices.php 85% from 13 tests

Analyzing the main PHP file in "Round Up Woocommerce Catalog Prices" version 1.0.0
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected127 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23050121
Markdown1806

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin