84% surbma-woocommerce-without-marketplace-suggestions

Code Review | Surbma | WooCommerce Without Marketplace Suggestions

WordPress plugin Surbma | WooCommerce Without Marketplace Suggestions scored84%from 54 tests.

About plugin

  • Plugin page: surbma-woocommerc...
  • Plugin version: 2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 9, 2019
  • Latest release: Apr 8, 2023
  • Number of updates: 10
  • Update frequency: every 145.9 days
  • Top authors: Surbma (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,495 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼8.10ms] Passed 4 tests

Server-side resources used by Surbma | WooCommerce Without Marketplace Suggestions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.31 ▲1.15
Dashboard /wp-admin3.31 ▲0.0045.55 ▼3.04
Posts /wp-admin/edit.php3.36 ▲0.0046.77 ▼12.77
Add New Post /wp-admin/post-new.php5.89 ▲0.0078.63 ▼17.60
Media Library /wp-admin/upload.php3.23 ▲0.0036.04 ▲1.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Surbma | WooCommerce Without Marketplace Suggestions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.441.80 ▼0.3343.91 ▲1.78
Dashboard /wp-admin2,203 ▲185.83 ▼0.0594.77 ▼8.4638.82 ▼2.90
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0339.72 ▲1.9034.49 ▲2.68
Add New Post /wp-admin/post-new.php1,533 ▲1023.43 ▲0.03676.02 ▲52.7765.92 ▲17.95
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.2493.39 ▼3.5539.93 ▼2.84

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/surbma-woocommerce-without-marketplace-suggestions/surbma-woocommerce-without-marketplace-suggestions.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, marketplace

surbma-woocommerce-without-marketplace-suggestions/surbma-woocommerce-without-marketplace-suggestions.php 92% from 13 tests

The primary PHP file in "Surbma | WooCommerce Without Marketplace Suggestions" version 2.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.1" instead of "3.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin6 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
Markdown1103
PHP18153

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG images were found in this plugin