Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲5.71MB] [CPU: ▲34.00ms] 75% from 4 tests
Analyzing server-side resources used by Ua Marketplace
It is recommended to improve the following
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.71MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.71 ▲6.24 | 81.05 ▲39.91 |
Dashboard /wp-admin | 9.73 ▲6.38 | 87.61 ▲24.80 |
Posts /wp-admin/edit.php | 9.73 ▲6.37 | 100.02 ▲47.39 |
Add New Post /wp-admin/post-new.php | 9.73 ▲3.84 | 125.52 ▲23.91 |
Media Library /wp-admin/upload.php | 9.73 ▲6.50 | 85.40 ▲49.62 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 9.73 | 77.83 |
Server storage [IO: ▲3.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 236 new files
Database: no new tables, 12 new options
New WordPress options |
---|
fs_accounts |
widget_theysaidso_widget |
fs_debug_mode |
fs_gdpr |
theysaidso_admin_options |
widget_recent-comments |
mrkv_uamrkpl_collation_option |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Ua Marketplace
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 14.35 ▲0.06 | 1.63 ▼0.13 | 30.44 ▼15.12 |
Dashboard /wp-admin | 2,319 ▲139 | 5.85 ▲0.28 | 94.22 ▼5.70 | 44.96 ▲2.11 |
Posts /wp-admin/edit.php | 2,219 ▲119 | 2.39 ▲0.38 | 42.88 ▲2.48 | 39.25 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,567 ▲31 | 22.25 ▲4.01 | 667.38 ▲47.14 | 36.18 ▼36.13 |
Media Library /wp-admin/upload.php | 1,519 ▲122 | 4.38 ▲0.14 | 88.30 ▼11.17 | 42.89 ▼1.38 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,140 | 2.22 | 27.41 | 26.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/ua-marketplace/uninstall.php+42
chmod(): Operation not permitted
- Zombie WordPress options detected upon uninstall: 10 options
- fs_active_plugins
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ua-marketplace/templates/dashboard-footer.php
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Core\\WCShopController' not found in wp-content/plugins/ua-marketplace/inc/Core/WCShop/WCShopOffer.php:11
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/ua-marketplace/inc/Api/Callbacks/AdminCallbacks.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ua-marketplace/templates/dashboard-header.php:3
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/ua-marketplace/inc/Base/SupportController.php:13
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/ua-marketplace/inc/Base/RozetkaSettingsController.php:13
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Core\\Marketplaces\\APIs\\AbstractAPI' not found in wp-content/plugins/ua-marketplace/inc/Core/Marketplaces/APIs/RozetkaAPI.php:10
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Core\\WCShop\\WCShopOffer' not found in wp-content/plugins/ua-marketplace/inc/Core/WCShop/WCShopOfferVariable.php:12
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Core\\WCShop\\WCShopPromua\\WCShopPromuaOffer' not found in wp-content/plugins/ua-marketplace/inc/Core/WCShop/WCShopPromua/WCShopPromuaOfferVariable.php:12
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Core\\WCShopController' not found in wp-content/plugins/ua-marketplace/inc/Core/WCShop/WCShopCollation.php:11
- > PHP Fatal error
Uncaught Error: Class 'Inc\\Base\\BaseController' not found in wp-content/plugins/ua-marketplace/inc/Api/Callbacks/DashboardCallbacks.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: woocommerce, xml, ecommerce, rozetka
ua-marketplace/morkvawrs-plugin.php 77% from 13 tests
The main PHP script in "Ua Marketplace" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "3.8")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ua-marketplace.php" instead of "morkvawrs-plugin.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin35,591 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 171 | 8,492 | 16,901 | 35,134 |
Markdown | 2 | 68 | 0 | 215 |
JavaScript | 4 | 34 | 59 | 195 |
JSON | 2 | 0 | 0 | 32 |
CSS | 12 | 0 | 0 | 15 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 49.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 4 | 4.26% |
▷ Concrete classes | 90 | 95.74% |
▷ Final classes | 1 | 1.11% |
Methods | 1,426 | |
▷ Static methods | 199 | 13.96% |
▷ Public methods | 1,064 | 74.61% |
▷ Protected methods | 15 | 1.05% |
▷ Private methods | 347 | 24.33% |
Functions | 105 | |
▷ Named functions | 98 | 93.33% |
▷ Anonymous functions | 7 | 6.67% |
Constants | 125 | |
▷ Global constants | 98 | 78.40% |
▷ Class constants | 27 | 21.60% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |