Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.59MB] [CPU: ▼136.72ms] Passed 4 tests
Analyzing server-side resources used by Contact Bank - Contact Form Builder for WordPress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▲0.59 | 28.85 ▲4.78 |
Dashboard /wp-admin | 3.85 ▲0.79 | 42.14 ▲9.37 |
Posts /wp-admin/edit.php | 3.87 ▲0.75 | 39.04 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.74 ▲0.30 | 79.90 ▼558.04 |
Media Library /wp-admin/upload.php | 3.73 ▲0.73 | 30.51 ▲7.47 |
Roles and Capabilities /wp-admin/admin.php?page=cb_roles_and_capabilities | 4.30 | 32.06 |
/wp-admin/admin.php?page=cb_add_new_form | 4.30 | 47.56 |
Custom CSS /wp-admin/admin.php?page=cb_custom_css | 4.30 | 30.64 |
/wp-admin/admin.php?page=cb_wizard_contact_bank | 4.30 | 36.12 |
Forms /wp-admin/admin.php?page=contact_dashboard | 4.30 | 32.53 |
Form Submissions /wp-admin/admin.php?page=cb_submissions | 4.30 | 31.87 |
System Information /wp-admin/admin.php?page=cb_system_information | 4.30 | 30.65 |
Email Templates /wp-admin/admin.php?page=cb_email_templates | 4.30 | 31.55 |
/wp-admin/admin.php?page=cb_add_new_email_template | 4.28 | 29.58 |
General Settings /wp-admin/admin.php?page=cb_general_settings | 4.30 | 32.03 |
Server storage [IO: ▲3.06MB] [DB: ▲0.02MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
- There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/contact-bank/" and "wp-content/uploads/"
- (new file) wp-content/contact-bank/.empty
Filesystem: 117 new files
Database: 2 new tables, 3 new options
New tables |
---|
wp_contact_bank |
wp_contact_bank_meta |
New WordPress options |
---|
widget_contact_bank_widget |
cb_admin_notice |
contact-bank-version-number |
Browser metrics Passed 4 tests
Contact Bank - Contact Form Builder for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,214 ▲564 | 16.28 ▲0.30 | 10.00 ▲4.90 | 62.46 ▼17.11 |
Dashboard /wp-admin | 3,268 ▲376 | 6.23 ▲0.10 | 116.49 ▼17.10 | 198.61 ▲17.31 |
Posts /wp-admin/edit.php | 2,928 ▲188 | 3.14 ▼0.08 | 65.53 ▲0.31 | 141.21 ▲4.73 |
Add New Post /wp-admin/post-new.php | 4,247 ▲512 | 21.16 ▲2.53 | 435.86 ▲14.15 | 197.99 ▲40.54 |
Media Library /wp-admin/upload.php | 1,959 ▲207 | 5.64 ▲0.15 | 128.89 ▼13.33 | 202.04 ▲15.86 |
Roles and Capabilities /wp-admin/admin.php?page=cb_roles_and_capabilities | 1,588 | 3.76 | 77.77 | 200.81 |
/wp-admin/admin.php?page=cb_add_new_form | 1,628 | 3.70 | 76.60 | 211.44 |
Custom CSS /wp-admin/admin.php?page=cb_custom_css | 1,627 | 3.48 | 66.67 | 196.96 |
/wp-admin/admin.php?page=cb_wizard_contact_bank | 1,635 | 3.52 | 71.25 | 207.22 |
Forms /wp-admin/admin.php?page=contact_dashboard | 1,632 | 3.48 | 67.65 | 199.23 |
Form Submissions /wp-admin/admin.php?page=cb_submissions | 1,632 | 3.48 | 68.01 | 199.50 |
System Information /wp-admin/admin.php?page=cb_system_information | 1,632 | 3.47 | 66.11 | 199.88 |
Email Templates /wp-admin/admin.php?page=cb_email_templates | 1,627 | 3.46 | 67.44 | 203.22 |
/wp-admin/admin.php?page=cb_add_new_email_template | 1,541 | 2.86 | 56.35 | 102.28 |
General Settings /wp-admin/admin.php?page=cb_general_settings | 1,625 | 3.53 | 66.43 | 198.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_contact_bank_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/contact-bank/lib/shortcode.php:8
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/contact-bank/lib/shortcode.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/contact-bank/lib/dashboard-widget.php:25
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: A description for screenshot #11 is missing in contact-bank/assets to your readme.txt
contact-bank/contact-bank.php 92% from 13 tests
This is the main PHP file of "Contact Bank - Contact Form Builder for WordPress" version 3.0.30, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin43,542 lines of code in 70 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 408 | 865 | 19,497 |
JavaScript | 12 | 2,380 | 7,363 | 12,757 |
CSS | 15 | 744 | 65 | 9,826 |
SVG | 7 | 0 | 5 | 1,462 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 4 | 13.79% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
36 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/images/ui-bg_flat_10_000000_40x100.png | 0.08KB | 0.08KB | 0.00% |
assets/global/img/portlet-config-icon-white.png | 0.27KB | 0.44KB | 0.00% |
assets/admin/images/ui-icons_228ef1_256x240.png | 3.68KB | 4.17KB | 0.00% |
user-views/assets/img/no.png | 3.79KB | 0.46KB | ▼ 87.74% |
assets/admin/images/ui-bg_diagonals-thick_18_b81900_40x40.png | 0.14KB | 0.15KB | 0.00% |