10% remove-woocommerce-marketplace-suggestions

Code Review | Remove Marketplace Suggestions for WooCommerce

WordPress plugin Remove Marketplace Suggestions for WooCommerce scored10%from 54 tests.

About plugin

  • Plugin page: remove-woocommerc...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2019
  • Latest release: Apr 6, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: indextwo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /634 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/remove-woocommerce-marketplace-suggestions/wc-remove-marketplace-suggestions.php+25
    Use of undefined constant vnmRemoveWCMPS_VERSION - assumed 'vnmRemoveWCMPS_VERSION' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.92MB] [CPU: ▼51.77ms] Passed 4 tests

Server-side resources used by Remove Marketplace Suggestions for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.395.04 ▼38.23
Dashboard /wp-admin2.09 ▼1.218.84 ▼44.01
Posts /wp-admin/edit.php2.09 ▼1.276.20 ▼41.56
Add New Post /wp-admin/post-new.php2.09 ▼3.805.86 ▼83.26
Media Library /wp-admin/upload.php2.09 ▼1.146.86 ▼27.23

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
vnmRemoveWCMPS_version
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove Marketplace Suggestions for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.421.74 ▼0.3639.64 ▼5.04
Dashboard /wp-admin2,203 ▲154.86 ▲0.00111.28 ▼6.2345.43 ▲2.81
Posts /wp-admin/edit.php2,086 ▼02.01 ▼0.0439.76 ▲3.6235.48 ▲0.03
Add New Post /wp-admin/post-new.php1,413 ▼12018.15 ▼4.99630.84 ▼81.4649.00 ▼4.92
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.00109.14 ▲7.0044.49 ▲0.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/remove-woocommerce-marketplace-suggestions/wc-remove-marketplace-suggestions.php+45
    Use of undefined constant vnmRemoveWCMPS_VERSION - assumed 'vnmRemoveWCMPS_VERSION' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/remove-woocommerce-marketplace-suggestions/wc-remove-marketplace-suggestions.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Requires php: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

remove-woocommerce-marketplace-suggestions/wc-remove-marketplace-suggestions.php 77% from 13 tests

"Remove Marketplace Suggestions for WooCommerce" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.4" instead of "3.5.0")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remove-woocommerce-marketplace-suggestions.php" instead of "wc-remove-marketplace-suggestions.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122323

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin