Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.76MB] [CPU: ▼63.28ms] Passed 4 tests
Server-side resources used by MarketPowerWP
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 50.52 ▲8.90 |
Dashboard /wp-admin | 2.20 ▼1.15 | 6.25 ▼60.62 |
Posts /wp-admin/edit.php | 2.20 ▼1.16 | 6.31 ▼48.86 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.69 | 7.72 ▼116.09 |
Media Library /wp-admin/upload.php | 2.20 ▼1.03 | 6.72 ▼27.56 |
Replication Shortcodes /wp-admin/admin.php?page=replication | 2.20 | 6.58 |
Settings /wp-admin/admin.php?page=multisoft-mpp-settings | 2.20 | 6.58 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 13 new options
New WordPress options |
---|
multisoft_mpp_web_path |
widget_theysaidso_widget |
multisoft_mpp_autoprefix |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
multisoft_mpp_replication_path_query_format |
multisoft_mpp_replication_path |
multisoft_mpp_check_site_name_path_query_format |
multisoft_mpp_check_site_name_path |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MarketPowerWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲210 | 14.10 ▼0.46 | 6.36 ▲4.59 | 42.89 ▼0.00 |
Dashboard /wp-admin | 2,250 ▲59 | 5.15 ▼0.73 | 118.79 ▲13.61 | 38.54 ▼3.67 |
Posts /wp-admin/edit.php | 2,136 ▲44 | 2.33 ▲0.21 | 34.51 ▼6.98 | 30.79 ▼4.65 |
Add New Post /wp-admin/post-new.php | 1,558 ▲39 | 21.91 ▼1.24 | 679.94 ▲50.49 | 62.96 ▲14.37 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.45 ▲0.21 | 101.14 ▼8.07 | 41.75 ▼4.19 |
Replication Shortcodes /wp-admin/admin.php?page=replication | 889 | 1.96 | 31.33 | 38.18 |
Settings /wp-admin/admin.php?page=multisoft-mpp-settings | 943 | 2.08 | 28.51 | 28.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the leplugin-jquery-ui-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 13 options in the database
- multisoft_mpp_replication_path_query_format
- db_upgraded
- multisoft_mpp_replication_path
- can_compress_scripts
- multisoft_mpp_check_site_name_path_query_format
- multisoft_mpp_autoprefix
- theysaidso_admin_options
- multisoft_mpp_check_site_name_path
- multisoft_mpp_default_replicated_site_name
- widget_recent-comments
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=multisoft-mpp-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the leplugin-jquery-ui-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=multisoft-mpp-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the leplugin-font-awesome-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/marketpowerwp/js/mpp/adf.phpvars.php
- > /wp-content/plugins/marketpowerwp/js/leplugin.phpvars.php
- 48× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'LePlugin\\Core\\View' not found in wp-content/plugins/marketpowerwp/src/LePlugin/Core/AdminHeaderView.php:11
- > PHP Fatal error
Uncaught Error: Class 'LePlugin\\Core\\AbstractController' not found in wp-content/plugins/marketpowerwp/src/Multisoft/MPP/Distributor/DistributorController.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/marketpowerwp/views/mpp/deployment_general_settings_section.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_dropdown_pages() in wp-content/plugins/marketpowerwp/views/mpp_replication_general_settings_section.php:8
- > PHP Warning
require(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/marketpowerwp/autoloader.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'LePlugin\\Core\\AbstractController' not found in wp-content/plugins/marketpowerwp/src/Multisoft/MPP/Replication/ReplicationController.php:18
- > PHP Fatal error
Uncaught Error: Class 'LePlugin\\Api\\ApiController' not found in wp-content/plugins/marketpowerwp/src/LePlugin/Core/CoreApiController.php:13
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/marketpowerwp/src/Katzgrau/KLogger/Logger.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/marketpowerwp/views/mpp/distributor/add/form_frame.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/marketpowerwp/views/mpp_replication_advanced_settings_section.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires at least: Version format is invalid
marketpowerwp/leplugin.php 92% from 13 tests
The principal PHP file in "MarketPowerWP" v. 2.2.9 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("marketpowerwp.php" instead of "leplugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected8,558 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 851 | 1,047 | 5,162 |
JSON | 4 | 8 | 0 | 1,126 |
JavaScript | 8 | 556 | 2,536 | 1,030 |
SVG | 2 | 0 | 0 | 928 |
Markdown | 1 | 145 | 0 | 291 |
CSS | 3 | 1 | 11 | 19 |
HTML | 2 | 0 | 6 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 6 | 13.95% |
▷ Concrete classes | 37 | 86.05% |
▷ Final classes | 0 | 0.00% |
Methods | 341 | |
▷ Static methods | 39 | 11.44% |
▷ Public methods | 263 | 77.13% |
▷ Protected methods | 62 | 18.18% |
▷ Private methods | 16 | 4.69% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 88 | |
▷ Global constants | 22 | 25.00% |
▷ Class constants | 66 | 75.00% |
▷ Public constants | 66 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin