Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.56MB] [CPU: ▲2.88ms] Passed 4 tests
Server-side resources used by Doneren met Mollie
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.28 | 50.37 ▲4.44 |
Dashboard /wp-admin | 3.99 ▲0.68 | 51.89 ▲0.99 |
Posts /wp-admin/edit.php | 4.01 ▲0.65 | 54.22 ▲5.44 |
Add New Post /wp-admin/post-new.php | 6.62 ▲0.72 | 85.23 ▲0.65 |
Media Library /wp-admin/upload.php | 3.87 ▲0.63 | 42.05 ▲8.37 |
Donations /wp-admin/admin.php?page=doneren-met-mollie | 3.78 | 39.75 |
Donation /wp-admin/admin.php?page=doneren-met-mollie-donatie | 3.76 | 38.92 |
Settings /wp-admin/admin.php?page=doneren-met-mollie-instellingen | 3.81 | 43.88 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_donate_mollie_donors |
wp_donate_mollie |
wp_donate_mollie_subscriptions |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
dmm_v251_updated |
widget_recent-comments |
dmm_version |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Doneren met Mollie
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲70 | 14.24 ▼0.02 | 1.73 ▲0.08 | 44.02 ▲0.48 |
Dashboard /wp-admin | 2,222 ▲45 | 5.62 ▲0.04 | 92.55 ▼5.37 | 40.89 ▼10.25 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.95 ▼0.00 | 35.98 ▼0.65 | 30.82 ▼0.75 |
Add New Post /wp-admin/post-new.php | 1,550 ▲20 | 23.38 ▲0.29 | 654.94 ▲37.98 | 68.08 ▲15.20 |
Media Library /wp-admin/upload.php | 1,424 ▲27 | 4.21 ▲0.05 | 96.95 ▲0.77 | 43.73 ▲1.81 |
Donations /wp-admin/admin.php?page=doneren-met-mollie | 783 | 2.01 | 25.93 | 23.23 |
Donation /wp-admin/admin.php?page=doneren-met-mollie-donatie | 984 | 1.99 | 23.05 | 26.66 |
Settings /wp-admin/admin.php?page=doneren-met-mollie-instellingen | 1,330 | 1.96 | 25.23 | 31.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_donate_mollie_subscriptions
- wp_donate_mollie_donors
- wp_donate_mollie
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- dmm_version
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- dmm_v251_updated
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+340
Undefined index: id
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+428
Trying to get property 'customer_id' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+363
Trying to get property 'dm_name' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+368
Trying to get property 'dm_email' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+373
Trying to get property 'dm_company' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+378
Trying to get property 'dm_phone' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+383
Trying to get property 'dm_address' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+383
Trying to get property 'dm_zipcode' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+383
Trying to get property 'dm_city' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+383
Trying to get property 'dm_country' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+388
Trying to get property 'dm_project' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+393
Trying to get property 'dm_message' of non-object
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+398
Trying to get property 'dm_currency' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+398
Trying to get property 'dm_amount' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Warning in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+398
number_format() expects parameter 2 to be int, array given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+403
Trying to get property 'dm_settlement_currency' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+403
Trying to get property 'dm_settlement_amount' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+408
Trying to get property 'payment_method' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+413
Trying to get property 'dm_status' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+418
Trying to get property 'donation_id' of non-object
- > GET request to /wp-admin/admin.php?page=doneren-met-mollie-donatie
- > Notice in wp-content/plugins/doneren-met-mollie/includes/class-admin.php+423
Trying to get property 'payment_id' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/doneren-met-mollie/doneren-met-mollie.php
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/doneren-met-mollie/includes/class-donors-table.php:3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/doneren-met-mollie/includes/config.php on line 9
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/doneren-met-mollie/includes/config.php on line 8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/doneren-met-mollie/includes/config.php on line 10
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/doneren-met-mollie/includes/class-subscriptions-table.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/doneren-met-mollie/includes/class-donations-table.php:3
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/doneren-met-mollie/includes/config.php on line 10
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/doneren-met-mollie/includes/config.php on line 8
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/doneren-met-mollie/includes/config.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== doneren-met-mollie ===
)
doneren-met-mollie/doneren-met-mollie.php Passed 13 tests
"Doneren met Mollie" version 2.10.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Receive donations via Mollie
Code Analysis 97% from 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
No dangerous file extensions were detected2,563 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 365 | 253 | 2,563 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 162)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 55.14 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 190.00 |
Average method complexity | 6.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 162.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 57 | 80.28% |
▷ Protected methods | 1 | 1.41% |
▷ Private methods | 13 | 18.31% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 14 | 93.33% |
▷ Class constants | 1 | 6.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin