Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.16MB] [CPU: ▼45.25ms] Passed 4 tests
This is a short check of server-side resources used by linkID
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.69 | 12.06 ▼28.65 |
Dashboard /wp-admin | 2.86 ▼0.44 | 17.55 ▼30.93 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 17.35 ▼39.08 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.03 | 15.94 ▼82.35 |
Media Library /wp-admin/upload.php | 2.86 ▼0.37 | 15.58 ▼21.83 |
linkID /wp-admin/options-general.php?page=link_linkid_settings_page | 2.87 | 17.36 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 100 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_linkid_payment |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
link_linkid_payments_table_version |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
link_linkid_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for linkID
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.18 ▼1.25 | 1.81 ▼0.08 | 42.56 ▼6.49 |
Dashboard /wp-admin | 2,219 ▲31 | 4.84 ▼1.06 | 110.36 ▲6.25 | 39.37 ▼4.70 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.05 ▼0.01 | 41.40 ▲0.66 | 36.03 ▲4.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.32 ▲5.91 | 634.31 ▼39.74 | 60.32 ▲1.86 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.15 ▼0.10 | 96.68 ▼2.07 | 41.88 ▼7.58 |
linkID /wp-admin/options-general.php?page=link_linkid_settings_page | 922 | 2.19 | 25.78 | 30.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
session_start() expects parameter 1 to be array, string given
- Zombie tables were found after uninstall: 1 table
- wp_linkid_payment
- Zombie WordPress options detected upon uninstall: 7 options
- link_linkid_settings
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=link_linkid_settings_page
- > Warning in wp-includes/class-wp-hook.php+310
session_start() expects parameter 1 to be array, string given
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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/examples/LoggedIn.php
- > /wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/util/index.php
- 39× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Warning
Use of undefined constant LINK_WP_LINKID_PLUGIN_URL - assumed 'LINK_WP_LINKID_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/linkid/templates/login-block.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/linkid/templates/payment-block.php:8
- > PHP Notice
Trying to get property 'paymentResponse' of non-object in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/examples/LoggedIn.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Notice
Undefined index: linkID.authnContext in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/examples/LoggedIn.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/linkid/lib/linkid/linkid-sdk-php/LinkIDWSSoapClient.php:18
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #6 (The customer is redirected to the payment page when linkID is selected as payment method. The payment page shows a QR code your customers can scan using the linkID app on their smartphone, allowing them to pay for their order.)
linkid/linkid.php 92% from 13 tests
"linkID" version 0.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin5,599 lines of code in 81 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 1,586 | 1,356 | 4,673 |
PO File | 1 | 150 | 340 | 335 |
CSS | 2 | 50 | 1 | 292 |
JavaScript | 4 | 58 | 8 | 289 |
Markdown | 1 | 4 | 0 | 6 |
XML | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 10.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 3.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 50 | |
▷ Abstract classes | 4 | 8.00% |
▷ Concrete classes | 46 | 92.00% |
▷ Final classes | 0 | 0.00% |
Methods | 178 | |
▷ Static methods | 29 | 16.29% |
▷ Public methods | 159 | 89.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 10.67% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 81 | |
▷ Global constants | 7 | 8.64% |
▷ Class constants | 74 | 91.36% |
▷ Public constants | 74 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.33MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/linkID-logo-square.png | 8.26KB | 4.27KB | ▼ 48.29% |
img/linkID-seal-bg.png | 5.50KB | 2.78KB | ▼ 49.53% |
img/app-store.png | 6.33KB | 2.62KB | ▼ 58.70% |
img/linkID-logo-green-background-small.png | 3.13KB | 1.95KB | ▼ 37.52% |
img/linkid-logo-small-white.png | 4.69KB | 2.38KB | ▼ 49.31% |