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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.61ms] Passed 4 tests
Server-side resources used by BankVal - Bank Sort Code & Account Number Validation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 38.22 ▼2.58 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.45 ▼0.21 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.41 ▼0.09 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 91.76 ▲0.52 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 35.05 ▲0.44 |
General /wp-admin/admin.php?page=unified_software | 3.32 | 35.19 |
BankVal /wp-admin/admin.php?page=unified_software_bankval | 3.32 | 34.46 |
Server storage [IO: ▲0.04MB] [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: 12 new files
Database: 1 new table, 8 new options
New tables |
---|
bankval |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
unified_software_bankval |
widget_recent-posts |
widget_theysaidso_widget |
unified_software_encryption_key |
widget_recent-comments |
Browser metrics Passed 4 tests
BankVal - Bank Sort Code & Account Number Validation: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲142 | 13.56 ▼0.86 | 8.40 ▲6.61 | 41.94 ▲3.94 |
Dashboard /wp-admin | 2,230 ▲45 | 4.84 ▼0.04 | 106.60 ▲0.56 | 42.52 ▼0.83 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▼0.03 | 39.86 ▲0.54 | 35.51 ▲5.10 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 23.08 ▼0.09 | 629.11 ▼30.66 | 50.69 ▼8.81 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.27 ▲0.07 | 93.64 ▼10.53 | 40.02 ▼2.79 |
General /wp-admin/admin.php?page=unified_software | 803 | 2.04 | 24.72 | 26.88 |
BankVal /wp-admin/admin.php?page=unified_software_bankval | 807 | 2.03 | 25.24 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- bankval
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function UNIFIED_SOFTWARE\\BANKVAL\\add_action() in wp-content/plugins/bankval/settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function UNIFIED_SOFTWARE\\BANKVAL\\add_action() in wp-content/plugins/bankval/menu.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/bankval/template/bankval-form-template.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Contributors: Plugin contributors not specified
bankval/bankval.php Passed 13 tests
The entry point to "BankVal - Bank Sort Code & Account Number Validation" version 0.1.0 is a PHP file that has certain tags in its header comment area
83 characters long description:
Save time and money by making sure your payments and Direct Debits work first time.
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
There were no executable files found in this plugin690 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 145 | 27 | 607 |
JavaScript | 1 | 12 | 0 | 54 |
CSS | 1 | 7 | 0 | 29 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 5 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 16.67% |
Functions | 31 | |
▷ Named functions | 29 | 93.55% |
▷ Anonymous functions | 2 | 6.45% |
Constants | 6 | |
▷ Global constants | 3 | 50.00% |
▷ Class constants | 3 | 50.00% |
▷ Public constants | 3 | 100.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
PNG images were not found in this plugin