84% auction-software

Code Review | WPAuction software

WordPress plugin WPAuction software scored84%from 54 tests.

About plugin

  • Plugin page: auction-software
  • Plugin version: 1.2.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 3, 2020
  • Latest release: Aug 4, 2023
  • Number of updates: 33
  • Update frequency: every 34.2 days
  • Top authors: WPEka Club (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

300+ active /10,783 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.42MB] [CPU: ▼5.20ms] Passed 4 tests

A check of server-side resources used by WPAuction software
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.91 ▲0.4443.55 ▼0.27
Dashboard /wp-admin3.77 ▲0.4258.33 ▼4.35
Posts /wp-admin/edit.php3.82 ▲0.4659.25 ▲7.63
Add New Post /wp-admin/post-new.php6.29 ▲0.4088.42 ▼21.67
Media Library /wp-admin/upload.php3.63 ▲0.4044.41 ▲5.50
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.7939.71

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
auction_software_active

Browser metrics Passed 4 tests

An overview of browser requirements for WPAuction software
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲9613.67 ▼0.762.16 ▲0.2946.03 ▲2.51
Dashboard /wp-admin2,245 ▲485.84 ▲0.9399.27 ▼5.6543.82 ▲3.43
Posts /wp-admin/edit.php2,136 ▲392.18 ▲0.1942.71 ▲6.1439.23 ▲4.98
Add New Post /wp-admin/post-new.php1,563 ▲3723.00 ▲5.51681.35 ▲4.0851.09 ▼2.54
Media Library /wp-admin/upload.php1,435 ▲354.18 ▼0.07115.36 ▲3.0052.17 ▲5.94
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9952.0727.1635.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 13× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-watchlist-auctions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/auction-software/woocommerce/classes/emails/class-wc-auction-software-email-manager.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-recently-viewed-auctions.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-recent-auctions.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/auction-software/woocommerce/classes/products/class-wc-product-auction.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-future-auctions.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-random-auctions.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/auction-software/class-astgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product_Auction' not found in wp-content/plugins/auction-software/woocommerce/classes/products/class-wc-product-auction-reverse.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-software/widgets/class-auction-software-widget-featured-auctions.php:19

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
The official readme.txt might help

auction-software/auction-software.php Passed 13 tests

The entry point to "WPAuction software" version 1.2.8 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,072 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP411,5164,0529,235
JavaScript1013489983
PO File1222524558
CSS45011230
JSON10066

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity44.52
▷ Minimum class complexity1.00
▷ Maximum class complexity302.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods311
▷ Static methods227.07%
▷ Public methods28190.35%
▷ Protected methods247.72%
▷ Private methods61.93%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants9
▷ Global constants666.67%
▷ Class constants333.33%
▷ Public constants3100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png12.68KB5.22KB▼ 58.86%