68% woo-auction

Code Review | Woo Auction

WordPress plugin Woo Auction scored 68% from 54 tests.

About plugin

  • Plugin page: woo-auction
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 5.8.1
  • First release: May 5, 2018
  • Latest release: Aug 18, 2018
  • Number of updates: 17
  • Update frequency: every 15.9 days
  • Top authors: mithublue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 3,240 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by Woo Auction
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.67 ▼0.0519.35 ▼2.29
Dashboard /wp-admin3.15 ▲0.0933.55 ▼9.86
Posts /wp-admin/edit.php3.03 ▼0.0824.78 ▼19.37
Add New Post /wp-admin/post-new.php5.50 ▲0.0790.24 ▼567.68
Media Library /wp-admin/upload.php3.08 ▲0.0831.37 ▼0.10
News /wp-admin/edit.php?post_type=sm_shortcode&page=woo-auction/news.php2.8319.51
Auction Report /wp-admin/edit.php?post_type=product&page=wauc-auction-report2.8321.70

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 36 new files
Database: 2 new tables, 2 new options
New tables
wp_wauc_winners
wp_wauc_auction_log
New WordPress options
recovery_mode_email_last_sent
widget_wauc_auction_widget_demo

Browser metrics Passed 4 tests

An overview of browser requirements for Woo Auction
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,261 ▼33516.11 ▲0.420.96 ▼7.7110.63 ▼35.90
Dashboard /wp-admin2,989 ▲586.12 ▲0.03136.99 ▼13.81118.53 ▲1.05
Posts /wp-admin/edit.php45 ▼2,6940.90 ▼1.820.06 ▼62.1426.79 ▼68.68
Add New Post /wp-admin/post-new.php1,512 ▼16018.56 ▼0.35371.66 ▼9.36105.24 ▼7.57
Media Library /wp-admin/upload.php1,829 ▲255.04 ▲0.02147.05 ▲4.89120.66 ▲2.51
News /wp-admin/edit.php?post_type=sm_shortcode&page=woo-auction/news.php280.900.0611.93
Auction Report /wp-admin/edit.php?post_type=product&page=wauc-auction-report280.900.0511.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 2 tables
    • wp_wauc_auction_log
    • wp_wauc_winners
  • Zombie WordPress options detected upon uninstall: 2 options
    • recovery_mode_email_last_sent
    • widget_wauc_auction_widget_demo

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-auction/auction-report-admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-auction/news.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-auction/product-loop.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-auction/auction-admin.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-auction/ajax-action.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-auction/editor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woo-auction/pro-demo.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/edit.php?post_type=sm_shortcode&page=woo-auction/news.php
    • > Network (severe)
    wp-admin/edit.php?post_type=sm_shortcode&page=woo-auction/news.php - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/edit.php?post_type=product&page=wauc-auction-report
    • > Network (severe)
    wp-admin/edit.php?post_type=product&page=wauc-auction-report - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% 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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

woo-auction/woo-auction.php 85% from 13 tests

The main file in "Woo Auction" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("3.0.1" instead of "4.0")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin24,166 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript81,4711,62910,669
CSS3197,530
PHP124605782,745
SVG1002,671
LESS124528
JSON10023

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.36
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods121
▷ Static methods7259.50%
▷ Public methods121100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions1150.00%
▷ Anonymous functions1150.00%
Constants4
▷ Global constants4100.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
No PNG files were detected