Benchmarks
Plugin footprint 65% 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.29MB] [CPU: ▼177.77ms] Passed 4 tests
Server-side resources used by Marketplace Genie
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.12 ▲0.29 | 30.93 ▲3.85 |
Dashboard /wp-admin | 3.40 ▲0.34 | 38.34 ▼2.33 |
Posts /wp-admin/edit.php | 3.45 ▲0.34 | 35.16 ▲2.01 |
Add New Post /wp-admin/post-new.php | 5.70 ▲0.26 | 76.08 ▼712.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.28 | 27.61 ▲1.62 |
Server storage [IO: ▲1.71MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: 4 new tables, 1 new option
New tables |
---|
wp_marketplacegenie_settings |
wp_marketplacegenie_logs |
wp_marketplacegenie_competition |
wp_marketplacegenie_orders |
New WordPress options |
---|
marketplacegenie_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Marketplace Genie
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,779 ▲168 | 16.16 ▲0.52 | 7.76 ▲1.43 | 77.28 ▲3.33 |
Dashboard /wp-admin | 2,934 ▲38 | 6.01 ▼0.19 | 112.66 ▼17.18 | 168.93 ▼1.38 |
Posts /wp-admin/edit.php | 2,744 ▲38 | 3.24 ▲0.01 | 63.37 ▼1.50 | 142.39 ▲5.66 |
Add New Post /wp-admin/post-new.php | 3,739 ▼63 | 18.56 ▲2.75 | 421.29 ▼20.32 | 156.05 ▼15.01 |
Media Library /wp-admin/upload.php | 1,756 ▲7 | 5.56 ▲0.09 | 136.04 ▼4.98 | 186.74 ▲5.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie tables detected upon uninstall: 4 tables
- wp_marketplacegenie_competition
- wp_marketplacegenie_settings
- wp_marketplacegenie_orders
- wp_marketplacegenie_logs
- Zombie WordPress options detected upon uninstall: 1 option
- marketplacegenie_db_version
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/marketplacegenie-api/public/partials/marketplacegenie-public-display.php
- > /wp-content/plugins/marketplacegenie-api/includes/activate.php
- > /wp-content/plugins/marketplacegenie-api/admin/partials/marketplacegenie-admin-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/marketplacegenie-api/includes/class-marketplacegenie-install.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (Plugin Setup Page), #2 (API Status)
- Screenshots: These screenshots need descriptions #0, #0 in marketplacegenie-api/assets to your readme.txt
marketplacegenie-api/marketplacegenie.php 77% from 13 tests
"Marketplace Genie" version 3.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("marketplacegenie-api.php" instead of "marketplacegenie.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,454 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 574 | 543 | 2,228 |
JavaScript | 8 | 314 | 180 | 1,674 |
CSS | 5 | 70 | 8 | 445 |
XML | 6 | 0 | 0 | 57 |
Markdown | 1 | 24 | 0 | 50 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 12.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 17 | 42.50% |
▷ Public methods | 31 | 77.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 22.50% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.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
12 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/takealot-green-256x256.png | 5.71KB | 2.38KB | ▼ 58.44% |
img/takealot-16x16.png | 0.61KB | 0.62KB | 0.00% |
img/takealot-orange-256x256.png | 5.71KB | 2.38KB | ▼ 58.44% |
img/takealot-prime.png | 5.71KB | 2.38KB | ▼ 58.44% |
img/takealot-red-16x16.png | 0.61KB | 0.62KB | 0.00% |