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.53MB] [CPU: ▼23.96ms] Passed 4 tests
Server-side resources used by MgoSync - European dropshipping and suppliers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.04 ▼11.10 |
Dashboard /wp-admin | 3.46 ▲0.12 | 47.69 ▼16.31 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 50.10 ▲0.64 |
Add New Post /wp-admin/post-new.php | 3.34 ▼2.55 | 36.36 ▼65.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.73 ▼2.48 |
About us /wp-admin/admin.php?page=mgo_guideline | 3.40 | 32.72 |
Settings /wp-admin/admin.php?page=mgo_settings | 3.39 | 38.89 |
Contact us /wp-admin/admin.php?page=mgo_contact_us | 3.40 | 32.67 |
Dashboard /wp-admin/admin.php?page=mgo_dashboard | 3.43 | 30.74 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
mgosync_api_access_token |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MgoSync - European dropshipping and suppliers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲135 | 13.54 ▼1.11 | 1.77 ▼0.17 | 39.51 ▼6.32 |
Dashboard /wp-admin | 2,262 ▲74 | 5.86 ▼0.02 | 100.18 ▼17.34 | 40.32 ▼5.85 |
Posts /wp-admin/edit.php | 2,152 ▲84 | 2.03 ▲0.01 | 39.94 ▲3.27 | 35.43 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 18.39 ▼4.87 | 637.32 ▼41.61 | 56.46 ▼4.08 |
Media Library /wp-admin/upload.php | 1,442 ▲54 | 4.21 ▼0.06 | 95.69 ▼21.58 | 41.69 ▼8.61 |
About us /wp-admin/admin.php?page=mgo_guideline | 1,584 | 9.13 | 305.35 | 84.98 |
Settings /wp-admin/admin.php?page=mgo_settings | 1,007 | 2.18 | 28.30 | 43.05 |
Contact us /wp-admin/admin.php?page=mgo_contact_us | 1,150 | 2.07 | 26.49 | 40.61 |
Dashboard /wp-admin/admin.php?page=mgo_dashboard | 1,364 | 2.06 | 23.24 | 46.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- mgosync_api_access_token
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mgo_dashboard
- > Notice in wp-content/plugins/megamo/includes/services/class-mgosync-service.php+73
Undefined index: ck
- > GET request to /wp-admin/admin.php?page=mgo_settings
- > Notice in wp-content/plugins/megamo/includes/controllers/class-settings-controller.php+58
Undefined index: userName
- > GET request to /wp-admin/admin.php?page=mgo_settings
- > Notice in wp-content/plugins/megamo/includes/controllers/class-settings-controller.php+58
Undefined index: datetime
SRP 0% 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 fix the following items
- 30× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/megamo/includes/controllers/class-dashboard-controller.php
- > /wp-content/plugins/megamo/includes/views/components/contact-form.php
- > /wp-content/plugins/megamo/includes/views/components/settings-missing-cta.php
- > /wp-content/plugins/megamo/includes/class-megamo-api-rest-client.php
- > /wp-content/plugins/megamo/includes/views/about-us-view.php
- > /wp-content/plugins/megamo/megamo.php
- > /wp-content/plugins/megamo/includes/views/settings-view.php
- > /wp-content/plugins/megamo/includes/views/browse-suppliers-view.php
- > /wp-content/plugins/megamo/includes/views/components/suppliers.php
- > /wp-content/plugins/megamo/includes/controllers/class-about-us-controller.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'MGO_PLUGIN_DIR/includes/validators/class-wp-validator.php' (include_path='.:/usr/share/php') in wp-content/plugins/megamo/includes/views/components/requirements.php on line 5
- > PHP Warning
require_once(MGO_PLUGIN_DIR/includes/validators/class-wp-validator.php): failed to open stream: No such file or directory in wp-content/plugins/megamo/includes/views/components/requirements.php on line 5
- > PHP Warning
Use of undefined constant MGO_PLUGIN_DIR - assumed 'MGO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/megamo/includes/views/components/requirements.php on line 5
- > PHP Warning
Use of undefined constant MGO_PLUGIN_DIR - assumed 'MGO_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/megamo/includes/services/class-megamo-service.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'MGO_PLUGIN_DIR/includes/services/class-mgosync-service.php' (include_path='.:/usr/share/php') in wp-content/plugins/megamo/includes/services/class-megamo-service.php on line 5
- > PHP Warning
require_once(MGO_PLUGIN_DIR/includes/services/class-mgosync-service.php): failed to open stream: No such file or directory in wp-content/plugins/megamo/includes/services/class-megamo-service.php on line 5
- > PHP Fatal error
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 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3 in megamo/assets to your readme.txt
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
megamo/megamo.php 92% from 13 tests
The primary PHP file in "MgoSync - European dropshipping and suppliers" version 2.1.5 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin8,311 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 5,233 |
PHP | 34 | 578 | 66 | 2,099 |
CSS | 1 | 302 | 35 | 936 |
SVG | 7 | 0 | 0 | 28 |
JavaScript | 1 | 3 | 1 | 15 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.24 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 1 | 6.25% |
▷ Concrete classes | 15 | 93.75% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 3 | 3.19% |
▷ Public methods | 82 | 87.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 12.77% |
Functions | 4 | |
▷ Named functions | 2 | 50.00% |
▷ Anonymous functions | 2 | 50.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.38MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/png/banner2560.png | 28.37KB | 12.04KB | ▼ 57.57% |
assets/images/png/warehouse1280.png | 43.99KB | 17.53KB | ▼ 60.14% |
assets/images/png/banner1280.png | 14.31KB | 6.61KB | ▼ 53.82% |
assets/images/png/warehouse640.png | 21.82KB | 8.70KB | ▼ 60.11% |
assets/images/png/warehouse1920.png | 67.55KB | 26.71KB | ▼ 60.46% |