Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼11.81ms] Passed 4 tests
An overview of server-side resources used by DFOXM MugglePay For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.05 ▼6.86 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.44 ▼18.02 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.96 ▼9.24 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 89.67 ▼13.10 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.38 ▲5.28 |
Server storage [IO: ▲4.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 1,165 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
DFOXM MugglePay For WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.18 | 1.82 ▲0.04 | 38.38 ▼3.73 |
Dashboard /wp-admin | 2,192 ▲12 | 5.53 ▼0.14 | 89.91 ▼2.54 | 37.77 ▼3.46 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.04 | 37.91 ▼5.89 | 34.71 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▼0.41 | 623.84 ▼59.22 | 51.81 ▼6.80 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.02 | 97.35 ▼12.38 | 46.91 ▲0.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 469× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Helper\\Helper' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/symfony/console/Helper/ProcessHelper.php:26
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/Strict/DeclareStrictTypesFixer.php:27
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/StringNotation/SingleQuoteFixer.php:28
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/LanguageConstruct/FunctionToConstantFixer.php:30
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/Import/NoUnusedImportsFixer.php:29
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\String\\AbstractUnicodeString' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/symfony/string/CodePointString.php:25
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/Operator/StandardizeNotEqualsFixer.php:24
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\AbstractFixer' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Fixer/Naming/NoHomoglyphNamesFixer.php:26
- > PHP Fatal error
Uncaught Error: Interface 'PhpCsFixer\\Differ\\DifferInterface' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Differ/NullDiffer.php:18
- > PHP Fatal error
Uncaught Error: Interface 'PhpCsFixer\\Console\\Output\\ProcessOutputInterface' not found in wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/src/Console/Output/NullOutput.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please describe screenshot #1 in dfoxm-mugglepay-for-woocommerce/assets to your readme.txt
dfoxm-mugglepay-for-woocommerce/muggle-pay-for-wp.php 85% from 13 tests
The principal PHP file in "DFOXM MugglePay For WooCommerce" v. 1.0.5 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dfoxm-mugglepay-for-woocommerce.php" instead of "muggle-pay-for-wp.php")
- 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
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Please fix the following items
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .exe - Executable in Windows
- ☣ wp-content/plugins/dfoxm-mugglepay-for-woocommerce/tools/php-cs-fixer/vendor/symfony/console/Resources/bin/hiddeninput.exe
- .exe - Executable in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 742 | 15,814 | 30,029 | 76,998 |
reStructuredText | 230 | 4,237 | 5,398 | 5,900 |
Markdown | 46 | 950 | 0 | 4,851 |
JSON | 31 | 0 | 0 | 3,293 |
YAML | 7 | 63 | 3 | 281 |
PO File | 1 | 84 | 101 | 205 |
XSD | 3 | 29 | 31 | 202 |
XML | 1 | 19 | 12 | 123 |
Bourne Shell | 1 | 1 | 0 | 7 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 14.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 123 | |
Interfaces | 81 | |
Traits | 8 | |
Classes | 629 | |
▷ Abstract classes | 37 | 5.88% |
▷ Concrete classes | 592 | 94.12% |
▷ Final classes | 405 | 68.41% |
Methods | 4,327 | |
▷ Static methods | 300 | 6.93% |
▷ Public methods | 3,006 | 69.47% |
▷ Protected methods | 461 | 10.65% |
▷ Private methods | 860 | 19.88% |
Functions | 313 | |
▷ Named functions | 97 | 30.99% |
▷ Anonymous functions | 216 | 69.01% |
Constants | 370 | |
▷ Global constants | 18 | 4.86% |
▷ Class constants | 352 | 95.14% |
▷ Public constants | 321 | 91.19% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mpay-en-black.png | 30.41KB | 6.42KB | ▼ 78.89% |
assets/images/mpay-en.png | 28.77KB | 4.77KB | ▼ 83.43% |
assets/images/mpay-zh.png | 31.16KB | 6.25KB | ▼ 79.93% |
assets/images/mpay-icon.png | 24.24KB | 3.11KB | ▼ 87.16% |
tools/php-cs-fixer/vendor/friendsofphp/php-cs-fixer/logo.png | 18.19KB | 7.18KB | ▼ 60.51% |