83% service-for-multi-vendor-auction

Code Review | Service for Multi Vendor Auction

WordPress plugin Service for Multi Vendor Auction scored83%from 54 tests.

About plugin

  • Plugin page: service-for-multi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1
  • WordPress version: 6.3.1
  • First release: Oct 13, 2015
  • Latest release: Sep 19, 2016
  • Number of updates: 12
  • Update frequency: every 58.0 days
  • Top authors: smartcodecreator (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.18ms] Passed 4 tests

An overview of server-side resources used by Service for Multi Vendor Auction
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.14 ▼2.09
Dashboard /wp-admin3.33 ▲0.0344.82 ▼5.00
Posts /wp-admin/edit.php3.38 ▲0.0346.90 ▼0.85
Add New Post /wp-admin/post-new.php5.91 ▲0.0392.17 ▼7.57
Media Library /wp-admin/upload.php3.25 ▲0.0336.15 ▼2.07

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_service_for_multi_vendor_auction_widget
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Service for Multi Vendor Auction
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13413.65 ▼0.708.26 ▲6.3141.58 ▼2.81
Dashboard /wp-admin2,210 ▲224.84 ▼1.07108.38 ▼7.3439.96 ▼4.77
Posts /wp-admin/edit.php2,093 ▲42.05 ▼0.0942.26 ▲6.8634.11 ▲0.85
Add New Post /wp-admin/post-new.php1,518 ▲417.61 ▲0.02672.35 ▲19.5153.53 ▲1.29
Media Library /wp-admin/upload.php1,395 ▲104.17 ▼0.0594.81 ▼5.5246.40 ▼0.91

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_service_for_multi_vendor_auction_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/service-for-multi-vendor-auction/service_for_multi_vendor_auction.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Plugin menu: Activation plugin after upload to your server), #2 (Appearance menu: Place the widget into your sidebar), #3 (Multi Vendor Auction site: Your user ID if you login Multi Vendor Auction (auctionandwebshop.blogbook.hu) site and click on the 'Action Update, Delete' menu field.), #4 (The widget on the page)
The official readme.txt is a good inspiration

service-for-multi-vendor-auction/service_for_multi_vendor_auction.php 85% from 13 tests

This is the main PHP file of "Service for Multi Vendor Auction" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("service-for-multi-vendor-auction.php" instead of "service_for_multi_vendor_auction.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 423 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,277 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS235501,155
PHP1791787
JavaScript1191235

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
14 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_inset-soft_30_f58400_1x100.png0.33KB0.18KB▼ 44.41%
css/images/ui-bg_glass_40_0078a3_1x400.png0.33KB0.16KB▼ 52.05%
css/images/ui-bg_flat_50_5c5c5c_40x100.png0.22KB0.08KB▼ 62.17%
css/images/ui-bg_glass_40_ffc73d_1x400.png0.31KB0.16KB▼ 49.37%
css/images/ui-bg_gloss-wave_25_333333_500x100.png3.73KB1.12KB▼ 69.92%