Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.27ms] Passed 4 tests
This is a short check of server-side resources used by WooCommerce Multivendor Marketplace - REST API
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.50 ▲3.18 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.58 ▼5.91 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.44 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 81.83 ▼15.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.91 ▲2.92 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Multivendor Marketplace - REST API
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲31 | 14.17 ▼0.43 | 1.54 ▼0.32 | 39.68 ▼1.53 |
Dashboard /wp-admin | 2,205 ▲25 | 5.56 ▼0.00 | 83.74 ▼10.18 | 41.34 ▲0.14 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▲0.05 | 34.54 ▼0.36 | 32.24 ▼8.07 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.56 ▼4.66 | 606.62 ▼91.60 | 75.97 ▲23.19 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.03 | 97.94 ▼3.17 | 42.18 ▼5.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-order-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-product-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-review-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-store_vendors-controller.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wcfm-marketplace-rest-api/helpers/wcfmapi-core-functions.php:13
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-wc_checkout-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-product-attribute-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-support-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-notification-controller.php:2
- > PHP Fatal error
Uncaught Error: Class 'WCFM_REST_Controller' not found in wp-content/plugins/wcfm-marketplace-rest-api/includes/api/class-api-wc_cart-controller.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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
4 plugin tags: rest api, http api, remote api, woocommerce marketplace api
wcfm-marketplace-rest-api/wcfm-marketplace-rest-api.php 92% from 13 tests
"WooCommerce Multivendor Marketplace - REST API" version 1.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.4" instead of "3.0.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,840 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 1,212 | 1,691 | 4,840 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 38.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 3 | 1.32% |
▷ Public methods | 171 | 75.33% |
▷ Protected methods | 51 | 22.47% |
▷ Private methods | 5 | 2.20% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin