Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼153.77ms] Passed 4 tests
Server-side resources used by Shoppable Marketplace
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.05 | 22.64 ▼16.05 |
Dashboard /wp-admin | 3.09 ▲0.03 | 49.66 ▼2.31 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 43.00 ▼26.01 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 91.93 ▼570.72 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.38 ▲3.25 |
Shoppable /wp-admin/options-general.php?page=shoppable_mp_options | 3.00 | 30.31 |
Server storage [IO: ▲1.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 1 new option
New WordPress options |
---|
shoppable_mp_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shoppable Marketplace
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,268 ▲631 | 19.66 ▲3.94 | 103.44 ▲93.30 | 78.42 ▲26.67 |
Dashboard /wp-admin | 2,975 ▲38 | 5.90 ▼0.09 | 148.50 ▼18.94 | 110.09 ▼4.74 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 62.81 ▼1.87 | 81.16 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,503 ▼101 | 18.44 ▼0.41 | 387.68 ▲8.63 | 109.47 ▲1.70 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▼0.00 | 154.39 ▼1.08 | 114.47 ▼5.87 |
Shoppable /wp-admin/options-general.php?page=shoppable_mp_options | 1,315 | 2.08 | 62.78 | 77.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 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/shoppable/shoppable.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in shoppable/assets to your readme.txt
shoppable/shoppable.php Passed 13 tests
Analyzing the main PHP file in "Shoppable Marketplace" version 2.0.1
85 characters long description:
Makes it easy to setup Shoppable Marketplace and display products and shopping cart.
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 plugin8,669 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 776 | 542 | 4,775 |
CSS | 4 | 382 | 269 | 3,741 |
PHP | 1 | 32 | 54 | 153 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 16.37KB | 6.50KB | ▼ 60.32% |
assets/images/close2.png | 0.28KB | 0.25KB | ▼ 8.51% |
assets/images/tag-grey.png | 0.58KB | 0.48KB | ▼ 17.88% |