84% woocommerce-installments

Code Review | WooCommerce Installments

WordPress plugin WooCommerce Installments scored84%from 54 tests.

About plugin

  • Plugin page: woocommerce-insta...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 6, 2014
  • Latest release: Mar 6, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: andersonfranco (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /4,212 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: ▼11.05ms] Passed 4 tests

This is a short check of server-side resources used by WooCommerce Installments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.91 ▼14.75
Dashboard /wp-admin3.31 ▼0.0345.87 ▼15.07
Posts /wp-admin/edit.php3.36 ▲0.0143.18 ▲1.27
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.24 ▼14.50
Media Library /wp-admin/upload.php3.23 ▲0.0033.26 ▲0.11

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

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

Browser metrics Passed 4 tests

WooCommerce Installments: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.40 ▲0.052.03 ▲0.1141.93 ▼3.56
Dashboard /wp-admin2,195 ▲185.62 ▼0.1395.26 ▲11.8241.13 ▲5.68
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0637.01 ▼2.8044.16 ▲7.16
Add New Post /wp-admin/post-new.php1,528 ▲222.86 ▼0.72634.63 ▲4.0653.49 ▲2.07
Media Library /wp-admin/upload.php1,397 ▼64.26 ▲0.0795.39 ▼3.2741.68 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woocommerce-installments/woocommerce-installments.php:133

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Catalog page.), #2 (Product page.), #3 (Cart page.)
You can look at the official readme.txt

woocommerce-installments/woocommerce-installments.php Passed 13 tests

The main file in "WooCommerce Installments" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
56 characters long description:
This plugin appends installments into the product price.

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 plugin151 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1159109
Markdown124042

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
3 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png68.47KB25.83KB▼ 62.28%
assets/screenshot-3.png16.85KB5.53KB▼ 67.18%
assets/screenshot-2.png39.95KB11.96KB▼ 70.07%