Benchmarks
Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼5.19ms] Passed 4 tests
An overview of server-side resources used by Multi Currency PayPal Donations
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.96 ▼1.89 |
Dashboard /wp-admin | 3.33 ▲0.02 | 53.24 ▲0.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 56.09 ▼19.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 99.09 ▼0.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 43.10 ▲7.44 |
Multi Currency Donations /wp-admin/options-general.php?page=mcpd | 3.33 | 35.57 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_mcpd_currency |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
mcpd-onetime |
widget_recent-comments |
mcpd-thanks |
can_compress_scripts |
mcpd-onetimecheck |
mcpd-itemname |
mcpd_db_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Multi Currency PayPal Donations
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲23 | 14.47 ▲1.23 | 1.84 ▼0.16 | 43.70 ▲0.02 |
Dashboard /wp-admin | 2,221 ▲15 | 4.89 ▼1.02 | 114.36 ▲6.51 | 42.19 ▼6.00 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.05 | 43.86 ▲3.85 | 38.36 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▼13 | 23.07 ▼0.09 | 671.61 ▼30.08 | 49.57 ▼4.00 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.25 ▲0.03 | 95.35 ▼10.33 | 42.04 ▲0.06 |
Multi Currency Donations /wp-admin/options-general.php?page=mcpd | 1,303 | 1.84 | 42.38 | 33.72 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mcpd
- > Notice in wp-content/plugins/multi-currency-paypal-donations/options.php+222
Undefined variable: i
- > GET request to /wp-admin/options-general.php?page=mcpd
- > Notice in wp-content/plugins/multi-currency-paypal-donations/multicurrdon.php+391
Undefined variable: rss_items
- > GET request to /wp-admin/options-general.php?page=mcpd
- > Warning in wp-content/plugins/multi-currency-paypal-donations/multicurrdon.php+391
Invalid argument supplied for foreach()
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
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/multi-currency-paypal-donations/uninstall.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/multi-currency-paypal-donations/js/mcpdjs.php:4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/multi-currency-paypal-donations/js/mcpdjs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/multi-currency-paypal-donations/form.html.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multi-currency-paypal-donations/multicurrdon.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/multi-currency-paypal-donations/options.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png)
multi-currency-paypal-donations/multicurrdon.php 85% from 13 tests
This is the main PHP file of "Multi Currency PayPal Donations" version 2.2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 612 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("multi-currency-paypal-donations.php" instead of "multicurrdon.php")
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
Good job! No executable or dangerous file extensions detected2,268 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 114 | 43 | 959 |
JavaScript | 4 | 140 | 38 | 805 |
CSS | 3 | 35 | 0 | 495 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.13MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/trans.png | 0.09KB | 0.09KB | 0.00% |
images/delete-icon.png | 0.60KB | 0.54KB | ▼ 9.34% |
screenshot-1.png | 82.92KB | 23.85KB | ▼ 71.23% |
screenshot-2.png | 45.00KB | 17.29KB | ▼ 61.59% |
js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |