83% ultimate-woocommerce-auction

Code Review | Ultimate Auction for WooCommerce

WordPress plugin Ultimate Auction for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: ultimate-woocomme...
  • Plugin version: 2.3.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Oct 16, 2023
  • Number of updates: 94
  • Update frequency: every 19.7 days
  • Top authors: nitesh_singh (100%)

Code review

54 tests

User reviews

115 reviews

Install metrics

3,000+ active /99,404 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.06ms] Passed 4 tests

Server-side resources used by Ultimate Auction for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.41 ▼6.03
Dashboard /wp-admin3.39 ▲0.0448.51 ▼15.42
Posts /wp-admin/edit.php3.44 ▲0.0849.87 ▼1.65
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.17 ▼8.94
Media Library /wp-admin/upload.php3.31 ▲0.0837.67 ▼1.84

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 267 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ultimate Auction for WooCommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.08 ▼0.321.58 ▼0.9241.20 ▲3.48
Dashboard /wp-admin2,217 ▲405.50 ▼0.0785.37 ▼8.0248.83 ▲7.02
Posts /wp-admin/edit.php2,123 ▲262.10 ▲0.1239.96 ▲3.3337.47 ▼1.14
Add New Post /wp-admin/post-new.php1,557 ▲2923.05 ▼0.05610.77 ▼87.9650.76 ▼8.54
Media Library /wp-admin/upload.php1,425 ▲254.30 ▲0.1398.41 ▼14.7545.72 ▼2.62

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 everything seems fine, this is not 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
  • 77× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Schedule' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/deprecated/ActionScheduler_Schedule_Deprecated.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/tests/phpunit/runner/ActionScheduler_QueueCleaner_Test.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/tests/phpunit/schedules/ActionScheduler_CronSchedule_Test.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Action' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/classes/ActionScheduler_FinishedAction.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/classes/data-stores/ActionScheduler_wpPostStore.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/ultimate-woocommerce-auction/includes/action-scheduler/tests/phpunit/jobs/ActionScheduler_NullAction_Test.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #6 (Frontend: Shop Page), #7 (Frontend: Single product page example)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt is a good inspiration

ultimate-woocommerce-auction/ultimate-woocommerce-auction.php 77% from 13 tests

This is the main PHP file of "Ultimate Auction for WooCommerce" version 2.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.5" instead of "4.0.0")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin16,385 lines of code in 183 files:
LanguageFilesBlank linesComment linesLines of code
PHP1653,3575,66312,133
JavaScript72523292,227
PO File25288021,240
CSS44315635
Markdown237090
XML11031
YAML16715
Bourne Shell19814

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.11
▷ Minimum class complexity1.00
▷ Maximum class complexity147.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces2
Interfaces4
Traits0
Classes125
▷ Abstract classes1915.20%
▷ Concrete classes10684.80%
▷ Final classes00.00%
Methods946
▷ Static methods879.20%
▷ Public methods77081.40%
▷ Protected methods15516.38%
▷ Private methods212.22%
Functions44
▷ Named functions3784.09%
▷ Anonymous functions715.91%
Constants67
▷ Global constants2638.81%
▷ Class constants4161.19%
▷ Public constants41100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
48 PNG files occupy 2.03MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-8.png118.82KB42.44KB▼ 64.28%
assets/images/variable_increment.png5.59KB3.30KB▼ 40.94%
assets/images/woo_ua_auction_big.png0.71KB0.72KB0.00%
assets/screenshot-2.png134.35KB41.96KB▼ 68.77%
assets/screenshot-6.png198.08KB64.93KB▼ 67.22%