84% auction-nudge

Code Review | Auction Nudge - Your eBay on Your Site

WordPress plugin Auction Nudge - Your eBay on Your Site scored84%from 54 tests.

About plugin

  • Plugin page: auction-nudge
  • Plugin version: 7.1.3
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.3
  • WordPress version: 6.3.1
  • First release: Nov 12, 2013
  • Latest release: Nov 18, 2023
  • Number of updates: 105
  • Update frequency: every 35.0 days
  • Top authors: morehawes (100%)

Code review

54 tests

User reviews

81 reviews

Install metrics

2,000+ active /78,311 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼1.57ms] Passed 4 tests

Analyzing server-side resources used by Auction Nudge - Your eBay on Your Site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2839.25 ▼1.18
Dashboard /wp-admin3.60 ▲0.2546.44 ▼12.62
Posts /wp-admin/edit.php3.71 ▲0.3647.28 ▲1.28
Add New Post /wp-admin/post-new.php6.18 ▲0.2995.45 ▲13.01
Media Library /wp-admin/upload.php3.52 ▲0.2938.89 ▲6.23
Auction Nudge /wp-admin/options-general.php?page=an_options_page3.4931.21

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 11 new options
New WordPress options
db_upgraded
an_options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_an_ads_widget
widget_an_feedback_widget
widget_an_listings_widget
widget_recent-posts
widget_an_profile_widget
...

Browser metrics Passed 4 tests

Auction Nudge - Your eBay on Your Site: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5314.23 ▼0.111.73 ▲0.1146.02 ▲2.77
Dashboard /wp-admin2,206 ▲285.68 ▼0.0289.01 ▼23.0538.47 ▼2.54
Posts /wp-admin/edit.php2,108 ▲52.01 ▼0.0237.55 ▼3.4533.98 ▼2.40
Add New Post /wp-admin/post-new.php1,534 ▲423.23 ▲0.07619.06 ▼9.7346.94 ▼5.90
Media Library /wp-admin/upload.php1,411 ▲84.25 ▲0.06101.23 ▲3.6541.37 ▼3.50
Auction Nudge /wp-admin/options-general.php?page=an_options_page1,0551.7024.3848.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_an_profile_widget
    • widget_recent-posts
    • an_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_an_listings_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_an_feedback_widget
    • can_compress_scripts
    • ...

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auction-nudge/inc/admin.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auction-nudge/inc/front.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/auction-nudge/inc/widgets.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auction-nudge/inc/front.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: feedback, item, ebay, feed, embed...

auction-nudge/auctionnudge.php 92% from 13 tests

The main PHP file in "Auction Nudge - Your eBay on Your Site" ver. 7.1.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("auction-nudge.php" instead of "auctionnudge.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin2,822 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP83894711,735
CSS2011286
LESS14235286
Markdown11830262
JavaScript26765253

PHP code Passed 2 tests

Analyzing 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.40
Average class complexity1.80
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods222.22%
▷ Private methods00.00%
Functions61
▷ Named functions61100.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
There were not PNG files found in your plugin