68% auction-feed

Code Review | Auction Feed

WordPress plugin Auction Feed scored68%from 54 tests.

About plugin

  • Plugin page: auction-feed
  • Plugin version: 1.1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 14, 2020
  • Latest release: Aug 30, 2023
  • Number of updates: 46
  • Update frequency: every 22.9 days
  • Top authors: morganrichards (67.39%)onestepdesign (34.78%)

Code review

54 tests

User reviews

8 reviews

Install metrics

90+ active /1,282 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.14ms] Passed 4 tests

An overview of server-side resources used by Auction Feed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2539.57 ▲0.47
Dashboard /wp-admin3.57 ▲0.2650.51 ▲2.99
Posts /wp-admin/edit.php3.62 ▲0.2647.85 ▼0.01
Add New Post /wp-admin/post-new.php6.17 ▲0.2888.16 ▼3.65
Media Library /wp-admin/upload.php3.49 ▲0.2637.54 ▲2.62
Delete /wp-admin/admin.php?page=auction-feed-plugin-delete-feed3.4632.93
Add New /wp-admin/admin.php?page=auction-feed-plugin-feed-options3.4431.35
Auction Feed /wp-admin/admin.php?page=auction-feed-plugin3.4633.68

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Auction Feed
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,885 ▲12414.28 ▲0.021.75 ▲0.0644.13 ▲2.61
Dashboard /wp-admin2,291 ▲1115.72 ▲0.0682.90 ▼10.0639.92 ▼2.95
Posts /wp-admin/edit.php2,197 ▲972.09 ▲0.1036.77 ▲0.5031.80 ▼4.30
Add New Post /wp-admin/post-new.php1,558 ▲3023.41 ▲0.50672.72 ▼9.1969.54 ▲13.48
Media Library /wp-admin/upload.php1,491 ▲914.28 ▲0.0897.38 ▼4.2243.47 ▼2.06
Delete /wp-admin/admin.php?page=auction-feed-plugin-delete-feed8521.7725.3522.84
Add New /wp-admin/admin.php?page=auction-feed-plugin-feed-options1,5871.9326.2428.26
Auction Feed /wp-admin/admin.php?page=auction-feed-plugin8871.7724.0724.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=auction-feed-plugin-feed-options
    • > Notice in wp-content/plugins/auction-feed/auction-feed.php+295
    Undefined variable: setThemeOptions
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=auction-feed-plugin-feed-options
    • > Notice in wp-content/plugins/auction-feed/auction-feed.php+318
    Undefined variable: setLanguageOptions

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function AuctionFeed\\add_filter() in wp-content/plugins/auction-feed/auction-feed.php:18

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

readme.txt Passed 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
3 plugin tags: feed, ebay, auction

auction-feed/auction-feed.php 92% from 13 tests

This is the main PHP file of "Auction Feed" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin965 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP27419774
JavaScript3325173
CSS14018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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
Namespaces1
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin