78% woo-partially

Code Review | Woo Partial.ly

WordPress plugin Woo Partial.ly scored 78% from 54 tests.

About plugin

  • Plugin page: woo-partially
  • Plugin version: 2.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2
  • WordPress version: 6.3.1
  • First release: Mar 25, 2016
  • Latest release: Jul 6, 2023
  • Number of updates: 81
  • Update frequency: every 32.8 days
  • Top authors: storestartup (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 22,078 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
This plugin's installer ran successfully

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

Server-side resources used by Woo Partial.ly
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0135.74 ▼9.30
Dashboard /wp-admin3.31 ▲0.0146.40 ▼0.44
Posts /wp-admin/edit.php3.36 ▲0.0045.25 ▼5.34
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.24 ▼3.41
Media Library /wp-admin/upload.php3.23 ▲0.0032.47 ▲1.94

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Woo Partial.ly
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.062.06 ▲0.0841.15 ▼5.55
Dashboard /wp-admin2,206 ▲215.80 ▲0.9096.95 ▼18.9138.10 ▼3.93
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0339.50 ▲2.9034.39 ▼0.25
Add New Post /wp-admin/post-new.php1,542 ▲2123.23 ▲0.19586.87 ▼66.7547.24 ▼17.92
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0994.89 ▼3.7441.62 ▼1.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 0% 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
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/woo-partially/inc/checkout-button.php
    • > /wp-content/plugins/woo-partially/inc/notification-handler.php
    • > /wp-content/plugins/woo-partially/inc/gateway.php
    • > /wp-content/plugins/woo-partially/inc/widget.php
    • > /wp-content/plugins/woo-partially/classes/partially/admin.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: partially_offer in wp-content/plugins/woo-partially/templates/partially-checkout.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WC() in wp-content/plugins/woo-partially/templates/partially-checkout.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
The official readme.txt is a good inspiration

woo-partially/woocommerce-partially.php 92% from 13 tests

This is the main PHP file of "Woo Partial.ly" version 2.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-partially.php" instead of "woocommerce-partially.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin931 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP817280931

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity37.00
▷ Minimum class complexity5.00
▷ Maximum class complexity69.00
Average method complexity4.43
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods314.29%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin