78% order-approval-for-multivendorx

Code Review | Order Approval for MultiVendorX

WordPress plugin Order Approval for MultiVendorX scored78%from 54 tests.

About plugin

  • Plugin page: order-approval-fo...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.4
  • WordPress version: 6.3.1
  • First release: Apr 27, 2023
  • Latest release: Oct 31, 2023
  • Number of updates: 8
  • Update frequency: every 23.4 days
  • Top authors: sarankumar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /138 total downloads

Benchmarks

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

Server-side resources used by Order Approval for MultiVendorX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1635.55 ▼9.17
Dashboard /wp-admin3.46 ▲0.1543.69 ▼7.64
Posts /wp-admin/edit.php3.57 ▲0.2148.17 ▼2.43
Add New Post /wp-admin/post-new.php6.06 ▲0.1779.83 ▼6.80
Media Library /wp-admin/upload.php3.38 ▲0.1537.19 ▲3.12

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Order Approval for MultiVendorX
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,936 ▲17513.42 ▼1.007.97 ▲6.1037.61 ▼5.72
Dashboard /wp-admin2,234 ▲635.62 ▲0.0996.96 ▲5.2244.01 ▲4.40
Posts /wp-admin/edit.php2,139 ▲392.16 ▲0.1840.19 ▼1.8836.74 ▼0.85
Add New Post /wp-admin/post-new.php1,560 ▲2322.95 ▲4.62662.22 ▲39.3855.55 ▲3.45
Media Library /wp-admin/upload.php1,442 ▲394.14 ▼0.0899.97 ▼2.5842.72 ▲1.27

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/order-approval-for-multivendorx/admin/partials/order-approval-for-multivendorx-admin-display.php
    • > /wp-content/plugins/order-approval-for-multivendorx/public/partials/order-approval-for-multivendorx-public-display.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sevengits\\is_admin() in wp-content/plugins/order-approval-for-multivendorx/plugin-deactivation-survey/deactivate-feedback-form.php:5

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 96% from 29 tests

readme.txt Passed 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
2 plugin tags: multivendorx, order approval

order-approval-for-multivendorx/order-approval-for-multivendorx.php 92% from 13 tests

Analyzing the main PHP file in "Order Approval for MultiVendorX" version 1.0.1
Please make the necessary changes and fix the following:
  • Requires at least: The required version number did not match the one declared in readme.txt ("3.0.1" instead of "3.7")

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
Success! There were no dangerous files found in this plugin1,155 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP16208927727
CSS610055306
JavaScript43066104
Markdown17018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods43
▷ Static methods36.98%
▷ Public methods2762.79%
▷ Protected methods818.60%
▷ Private methods818.60%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin