Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.46ms] Passed 4 tests
This is a short check of server-side resources used by Money Space
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.37 ▼1.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.40 ▼2.89 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.55 ▲2.13 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.34 ▲2.98 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 34.76 ▲0.19 |
Server storage [IO: ▲24.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 218 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Money Space
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▲0.08 | 1.78 ▲0.20 | 39.64 ▼3.49 |
Dashboard /wp-admin | 2,192 ▲12 | 5.51 ▼0.16 | 79.89 ▼5.26 | 40.49 ▲2.78 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 2.13 ▲0.11 | 38.29 ▲1.74 | 35.19 ▲0.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.07 ▼0.27 | 666.64 ▲34.92 | 71.39 ▲16.03 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.03 | 94.13 ▼1.87 | 44.40 ▲1.94 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 30× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/money-space/templates/qrnone/mns_tpl_qrnone_2.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/money-space/templates/qrnone/qrnone_form.php:3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/money-space/templates/qrnone/mns_tpl_qrnone_1.php on line 4
- > PHP Notice
Undefined variable: args in wp-content/plugins/money-space/templates/qrnone/mns_tpl_qrnone_2.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/money-space/view/webhook.php:7
- > PHP Notice
Undefined variable: args in wp-content/plugins/money-space/templates/qrnone/mns_tpl_qrnone_2.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/money-space/view/process-payment.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function WC() in wp-content/plugins/money-space/view/info.php:10
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/money-space/templates/qrnone/mns_tpl_qrnone_2.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WC_Payment_Gateway' not found in wp-content/plugins/money-space/payment-gateway/class-woocommerce-moneyspace-payment-gateway_QrProm.php:4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% 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 do not have images: #1 (The MoneySpace payment gateway settings screen used to configure the main MoneySpace gateway.), #2 (Offer a range of payment methods such as local and alternative payment methods.), #3 (Pay with a saved payment method, a new card, and allow customers to save the payment card for future transactions.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== money-space ===
)
money-space/moneyspace_payment_gateway.php 85% from 13 tests
The main file in "Money Space" v. 2.8.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("money-space.php" instead of "moneyspace_payment_gateway.php")
- Description: The description should be shorter than 140 characters (currently 862 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin123,877 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 24 | 0 | 0 | 83,902 |
CSS | 18 | 2,280 | 303 | 19,054 |
JavaScript | 14 | 3,223 | 3,315 | 17,336 |
PHP | 31 | 611 | 420 | 3,375 |
Markdown | 1 | 316 | 0 | 210 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 13.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 116 | |
▷ Static methods | 25 | 21.55% |
▷ Public methods | 87 | 75.00% |
▷ Protected methods | 25 | 21.55% |
▷ Private methods | 4 | 3.45% |
Functions | 30 | |
▷ Named functions | 23 | 76.67% |
▷ Anonymous functions | 7 | 23.33% |
Constants | 173 | |
▷ Global constants | 164 | 94.80% |
▷ Class constants | 9 | 5.20% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
52 PNG files occupy 6.93MB with 3.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/qr/bill.png | 16.22KB | 6.75KB | ▼ 58.38% |
includes/images/installment/central.png | 3.40KB | 1.84KB | ▼ 45.73% |
includes/themes/mns-01/images/step_4.png | 4.54KB | 2.31KB | ▼ 49.07% |
includes/themes/mns-01/images/partner_4.png | 3.50KB | 2.09KB | ▼ 40.41% |
includes/themes/mns-01/images/product_image.png | 1,136.94KB | 458.74KB | ▼ 59.65% |