73% bid13-auction-feed

Code Review | Bid13 Auction Feed

WordPress plugin Bid13 Auction Feed scored73%from 54 tests.

About plugin

  • Plugin page: bid13-auction-feed
  • Plugin version: 1.26
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Aug 5, 2016
  • Latest release: May 5, 2021
  • Number of updates: 34
  • Update frequency: every 51.0 days
  • Top authors: deweydb (94.12%)Otto42 (8.82%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,126 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.99MB] [CPU: ▼39.15ms] 75% from 4 tests

Analyzing server-side resources used by Bid13 Auction Feed
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 691.30ms on /wp-admin/options-general.php?page=bid13_auction_feed_settings)
PageMemory (MB)CPU Time (ms)
Home /2.97 ▼0.4916.55 ▼22.28
Dashboard /wp-admin3.02 ▼0.2819.71 ▼28.79
Posts /wp-admin/edit.php3.02 ▼0.3418.66 ▼26.66
Add New Post /wp-admin/post-new.php3.02 ▼2.8718.93 ▼78.85
Media Library /wp-admin/upload.php3.02 ▼0.2119.80 ▼16.96
Bid13 Settings /wp-admin/options-general.php?page=bid13_auction_feed_settings3.12691.30

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
bid13_auction_feed_version
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bid13 Auction Feed
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲14514.11 ▼0.546.05 ▲4.2343.57 ▲0.87
Dashboard /wp-admin2,217 ▲265.88 ▼0.02100.28 ▼4.1939.01 ▼4.79
Posts /wp-admin/edit.php2,097 ▲52.05 ▲0.0536.42 ▼0.2129.78 ▼6.68
Add New Post /wp-admin/post-new.php1,521 ▲123.02 ▼0.55671.77 ▼16.5256.74 ▼4.66
Media Library /wp-admin/upload.php1,399 ▲174.18 ▼0.03112.40 ▲14.0849.16 ▲5.54
Bid13 Settings /wp-admin/options-general.php?page=bid13_auction_feed_settings1,0063.1348.9528.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/bid13-auction-feed/includes/class-bid13-auction-feed-settings.php+241
    Undefined index: page
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • bid13_auction_feed_version
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=bid13_auction_feed_settings
    • > Notice in wp-content/plugins/bid13-auction-feed/includes/class-bid13-auction-feed-settings.php+287
    Undefined variable: links

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Screenshot of settings page)
Please take inspiration from this readme.txt

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

This is the main PHP file of "Bid13 Auction Feed" version 1.26, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "4.0")

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
Everything looks great! No dangerous files found in this plugin1,303 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP82384411,075
JavaScript61911119
CSS25162
PO File1172047

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity24.60
▷ Minimum class complexity5.00
▷ Maximum class complexity61.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png138.01KB40.82KB▼ 70.42%