83% woopm

Code Review | WooPM - WooCommerce & Paid Membership Pro integration to run a Membership based Marketplace

WordPress plugin WooPM - WooCommerce & Paid Membership Pro integration to run a Membership based Marketplace scored 83% from 54 tests.

About plugin

  • Plugin page: woopm
  • Plugin version: 1.0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2019
  • Latest release: Dec 23, 2021
  • Number of updates: 9
  • Update frequency: every 120.4 days
  • Top authors: shawon786 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,191 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.70ms] Passed 4 tests

Analyzing server-side resources used by WooPM - WooCommerce & Paid Membership Pro integration to run a Membership based Marketplace
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.28 ▼9.57
Dashboard /wp-admin3.31 ▲0.0143.80 ▼4.45
Posts /wp-admin/edit.php3.36 ▲0.0147.33 ▼0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.33 ▼12.22
Media Library /wp-admin/upload.php3.24 ▲0.0134.91 ▲1.15

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WooPM - WooCommerce & Paid Membership Pro integration to run a Membership based Marketplace
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.421.66 ▼0.1641.62 ▼3.25
Dashboard /wp-admin2,209 ▲215.88 ▲0.96102.52 ▼15.8938.73 ▼3.95
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0039.05 ▲1.5934.50 ▲2.14
Add New Post /wp-admin/post-new.php1,530 ▲1623.52 ▲5.81686.74 ▲39.1353.14 ▼15.15
Media Library /wp-admin/upload.php1,388 ▼34.20 ▼0.0392.85 ▼5.9541.97 ▼3.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woopm/woopm.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in woopm/assets to your readme.txt
The official readme.txt might help

woopm/woopm.php 77% from 13 tests

Analyzing the main PHP file in "WooPM - WooCommerce & Paid Membership Pro integration to run a Membership based Marketplace" version 1.0.3.1
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Domain Path: Prefix the domain path with a forward slash character ("/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1122525

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.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 files were detected