73% my-auctions-allegro-free-edition

Code Review | My auctions allegro

WordPress plugin My auctions allegro scored73%from 54 tests.

About plugin

  • Plugin page: my-auctions-alleg...
  • Plugin version: 3.6.11
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Apr 10, 2017
  • Latest release: Dec 1, 2023
  • Number of updates: 295
  • Update frequency: every 8.2 days
  • Top authors: grojanteam (91.53%)miro0 (4.07%)Volix (3.73%)wphocus (1.69%)

Code review

54 tests

User reviews

22 reviews

Install metrics

600+ active /34,227 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.29ms] Passed 4 tests

An overview of server-side resources used by My auctions allegro
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0444.93 ▲2.16
Dashboard /wp-admin3.45 ▲0.1051.73 ▼11.58
Posts /wp-admin/edit.php3.50 ▲0.1452.74 ▲3.82
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.78 ▼13.89
Media Library /wp-admin/upload.php3.31 ▲0.0837.31 ▲2.14
Support /wp-admin/admin.php?page=gjmaa_support3.3238.19
Auctions /wp-admin/admin.php?page=gjmaa_auctions3.5552.89
Plugin settings /wp-admin/admin.php?page=gjmaa_settings3.3536.30
Profiles /wp-admin/admin.php?page=gjmaa_profiles3.4236.86
My auctions allegro /wp-admin/admin.php?page=gjmaa_dashboard3.3834.74
Import auctions /wp-admin/admin.php?page=gjmaa_import3.3835.58

Server storage [IO: ▲0.70MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 177 new files
Database: 6 new tables, 8 new options
New tables
wp_gjmaa_profiles
wp_gjmaa_allegro_attributes
wp_gjmaa_auctions
wp_gjmaa_categories
wp_gjmaa_settings
wp_gjmaa_attachments
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
gjmaa_database_version
can_compress_scripts
widget_theysaidso_widget
widget_gjmaa_auctions
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by My auctions allegro
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲9114.67 ▲0.311.76 ▲0.0443.19 ▼0.57
Dashboard /wp-admin2,237 ▲635.67 ▲0.0195.33 ▼5.0149.06 ▲0.71
Posts /wp-admin/edit.php2,151 ▲511.97 ▼0.0438.64 ▲1.5934.93 ▼1.03
Add New Post /wp-admin/post-new.php1,566 ▲4023.27 ▲0.19607.73 ▼1.0162.99 ▼1.84
Media Library /wp-admin/upload.php1,445 ▲484.13 ▼0.02113.12 ▲18.9745.74 ▲5.51
Support /wp-admin/admin.php?page=gjmaa_support1,4609.32298.4698.55
Auctions /wp-admin/admin.php?page=gjmaa_auctions1,3831.7026.7634.71
Plugin settings /wp-admin/admin.php?page=gjmaa_settings1,0691.6926.9426.57
Profiles /wp-admin/admin.php?page=gjmaa_profiles1,0881.7027.2431.94
My auctions allegro /wp-admin/admin.php?page=gjmaa_dashboard1,2161.9726.2848.57
Import auctions /wp-admin/admin.php?page=gjmaa_import8971.6427.1626.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 tables in the database
    • wp_gjmaa_settings
    • wp_gjmaa_auctions
    • wp_gjmaa_categories
    • wp_gjmaa_allegro_attributes
    • wp_gjmaa_profiles
    • wp_gjmaa_attachments
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • gjmaa_database_version
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_gjmaa_auctions
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'GJMAA_PATH_CODE/service/abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'GJMAA_Model' not found in wp-content/plugins/my-auctions-allegro-free-edition/src/model/allegro/attribute.php:8
    • > PHP Warning
      require_once(GJMAA_PATH_CODE/service/import/event.php): failed to open stream: No such file or directory in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/custom.php on line 4
    • > PHP Warning
      Use of undefined constant GJMAA_PATH_CODE - assumed 'GJMAA_PATH_CODE' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/price.php on line 4
    • > PHP Warning
      Use of undefined constant GJMAA_PATH_CODE - assumed 'GJMAA_PATH_CODE' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/stock.php on line 4
    • > PHP Warning
      require_once(GJMAA_PATH_CODE/service/import/event.php): failed to open stream: No such file or directory in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/price.php on line 4
    • > PHP Warning
      Use of undefined constant GJMAA_PATH_CODE - assumed 'GJMAA_PATH_CODE' (this will throw an Error in a future version of PHP) in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/custom.php on line 4
    • > PHP Warning
      require_once(GJMAA_PATH_CODE/service/import/event.php): failed to open stream: No such file or directory in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/stock.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'GJMAA_PATH_CODE/service/import/event.php' (include_path='.:/usr/share/php') in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event/price.php on line 4
    • > PHP Warning
      require_once(GJMAA_PATH_CODE/service/abstract.php): failed to open stream: No such file or directory in wp-content/plugins/my-auctions-allegro-free-edition/src/service/import/event.php on line 4

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 90% 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
These attributes need to be fixed: The official readme.txt is a good inspiration

my-auctions-allegro-free-edition/my-auctions-allegro-free-edition.php 85% from 13 tests

"My auctions allegro" version 3.6.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.0.0")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 163 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected13,596 lines of code in 128 files:
LanguageFilesBlank linesComment linesLines of code
PHP1122,44291610,992
CSS8255471,963
PO File2164171350
JavaScript64647291

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.31
▷ Minimum class complexity1.00
▷ Maximum class complexity160.00
Average method complexity2.52
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes101
▷ Abstract classes87.92%
▷ Concrete classes9392.08%
▷ Final classes00.00%
Methods756
▷ Static methods557.28%
▷ Public methods73597.22%
▷ Protected methods20.26%
▷ Private methods192.51%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants45
▷ Global constants48.89%
▷ Class constants4191.11%
▷ Public constants41100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/allegro-icon.png1.90KB1.76KB▼ 7.46%
assets/img/rsz_allegro.png1.08KB1.35KB0.00%
assets/img/allegro_slidebox.png1.96KB1.49KB▼ 23.98%