Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼142.12ms] Passed 4 tests
Analyzing server-side resources used by CM iDIN for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▲0.22 | 35.58 ▲0.25 |
Dashboard /wp-admin | 3.42 ▲0.36 | 43.54 ▲0.83 |
Posts /wp-admin/edit.php | 3.47 ▲0.36 | 47.80 ▲1.62 |
Add New Post /wp-admin/post-new.php | 5.71 ▲0.28 | 86.84 ▼567.86 |
Media Library /wp-admin/upload.php | 3.30 ▲0.30 | 33.88 ▼1.71 |
Dashboard /wp-admin/admin.php?page=cm-idin | 3.28 | 31.80 |
CM iDIN /wp-admin/options-general.php?page=cm-idin-options | 3.27 | 34.64 |
Transactions /wp-admin/admin.php?page=cm-idin-transactions | 3.31 | 31.51 |
Settings /wp-admin/admin.php?page=cm-idin-settings | 3.27 | 33.21 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_cm_idin_transactions |
New WordPress options |
---|
cm_idin_version |
Browser metrics Passed 4 tests
An overview of browser requirements for CM iDIN for WooCommerce
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,766 ▲170 | 15.83 ▼0.22 | 8.80 ▼1.26 | 45.93 ▲0.86 |
Dashboard /wp-admin | 3,034 ▲100 | 5.93 ▼0.13 | 158.64 ▲8.70 | 113.01 ▲4.08 |
Posts /wp-admin/edit.php | 2,800 ▲61 | 2.73 ▲0.01 | 64.50 ▼4.33 | 93.54 ▲3.14 |
Add New Post /wp-admin/post-new.php | 1,700 ▲17 | 18.86 ▲0.85 | 394.68 ▼0.95 | 104.32 ▼2.06 |
Media Library /wp-admin/upload.php | 1,872 ▲65 | 5.06 ▲0.04 | 149.66 ▼7.11 | 115.78 ▼4.94 |
Dashboard /wp-admin/admin.php?page=cm-idin | 1,266 | 2.16 | 56.21 | 90.89 |
CM iDIN /wp-admin/options-general.php?page=cm-idin-options | 1,277 | 2.17 | 58.30 | 84.42 |
Transactions /wp-admin/admin.php?page=cm-idin-transactions | 1,282 | 2.09 | 53.71 | 64.00 |
Settings /wp-admin/admin.php?page=cm-idin-settings | 1,277 | 2.10 | 55.22 | 93.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_cm_idin_transactions
- This plugin did not uninstall successfully, leaving 1 option in the database
- cm_idin_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cm-idin/admin/page-dashboard.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/cm-idin/classes/class-transactions-list-table.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cm-idin/admin/page-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-idin/cm-idin.php:21
- > PHP Notice
Trying to get property 'status_response' of non-object in wp-content/plugins/cm-idin/admin/page-transaction.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-idin/templates/age-verification.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cm-idin/admin/page-transaction.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/cm-idin/admin/page-transactions.php:2
- > PHP Notice
Undefined variable: transaction in wp-content/plugins/cm-idin/admin/page-transaction.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-idin/templates/register-login.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: age, webshop, idin, cm, identification...
cm-idin/cm-idin.php Passed 13 tests
The primary PHP file in "CM iDIN for WooCommerce" version 1.0.2 is used by WordPress to initiate all plugin functionality
94 characters long description:
With iDIN a merchant can identify the consumers name and address and verify if the age is 18+.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,098 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 34 | 832 | 612 | 2,712 |
PO File | 1 | 120 | 141 | 269 |
CSS | 2 | 0 | 11 | 60 |
JSON | 2 | 0 | 0 | 55 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 133 | |
▷ Static methods | 17 | 12.78% |
▷ Public methods | 124 | 93.23% |
▷ Protected methods | 1 | 0.75% |
▷ Private methods | 8 | 6.02% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin