Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▲4.20ms] Passed 4 tests
Server-side resources used by Form - Contact Form
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.75 | 51.34 ▲11.36 |
Dashboard /wp-admin | 4.05 ▲0.75 | 47.15 ▲0.27 |
Posts /wp-admin/edit.php | 4.17 ▲0.81 | 54.44 ▲8.12 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.77 | 98.70 ▲3.84 |
Media Library /wp-admin/upload.php | 3.97 ▲0.75 | 38.72 ▲4.55 |
Server storage [IO: ▲4.24MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 385 new files
Database: 12 new tables, 7 new options
New tables |
---|
wp_rich_web_forms_themes2 |
wp_rich_web_forms_fields |
wp_rich_web_forms_mails |
wp_rich_web_forms_themes1 |
wp_rich_web_forms_options |
wp_rich_web_forms_saved |
wp_rich_web_forms_cust_id |
wp_rich_web_forms_id |
wp_rich_web_forms_themes3 |
wp_rich_web_forms_manager |
... |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_rich_web_forms |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Form - Contact Form
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,039 ▲304 | 16.78 ▲2.19 | 9.57 ▲7.58 | 42.57 ▼6.14 |
Dashboard /wp-admin | 2,314 ▲123 | 6.47 ▲1.62 | 133.75 ▲29.32 | 77.27 ▲29.95 |
Posts /wp-admin/edit.php | 2,201 ▲112 | 3.19 ▲1.21 | 68.38 ▲27.98 | 38.53 ▲5.74 |
Add New Post /wp-admin/post-new.php | 1,580 ▲66 | 24.09 ▲6.55 | 670.17 ▼2.72 | 40.26 ▼11.84 |
Media Library /wp-admin/upload.php | 1,496 ▲111 | 4.98 ▲0.78 | 125.18 ▲29.02 | 44.37 ▲3.42 |
General Options /wp-admin/admin.php?page=Rich-Web Forms General | 1,316 | 2.82 | 58.34 | 34.20 |
Submissions /wp-admin/admin.php?page=Rich-Web Forms Submissions | 1,091 | 2.92 | 52.43 | 29.19 |
Messages Manager /wp-admin/admin.php?page=Rich-Web Forms Messages | 1,399 | 4.82 | 109.97 | 62.94 |
Forms Manager /wp-admin/admin.php?page=Rich-Web Forms Admin | 3,064 | 2.92 | 56.73 | 31.11 |
Forms Themes /wp-admin/admin.php?page=Rich-Web Forms Themes | 4,099 | 2.88 | 53.74 | 26.07 |
Our Products /wp-admin/admin.php?page=Rich-Web Forms Products | 1,052 | 2.94 | 51.05 | 45.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie tables were found after uninstall: 12 tables
- wp_rich_web_forms_cust_id
- wp_rich_web_forms_fields
- wp_rich_web_forms_manager
- wp_rich_web_forms_mails
- wp_rich_web_forms_themes3
- wp_rich_web_forms_saved
- wp_rich_web_forms_themes2
- wp_rich_web_forms_themes1
- wp_rich_web_font_family
- wp_rich_web_forms_options
- ...
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_rich_web_forms
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/form-forms/Rich-Web-Forms-Shortcode.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-forms/Rich-Web-Forms-Ajax.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/form-forms/Rich-Web-Forms-Widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/form-forms/Form.php:12
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: form builder, forms builder, contact form, email, form...
form-forms/Form.php 92% from 13 tests
The primary PHP file in "Form - Contact Form" version 1.2.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("form-forms.php" instead of "Form.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin13,066 lines of code in 91 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 18 | 608 | 79 | 4,997 |
PHP | 12 | 85 | 33 | 4,938 |
JavaScript | 58 | 164 | 61 | 2,252 |
SVG | 3 | 0 | 0 | 879 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 199.00 |
▷ Minimum class complexity | 199.00 |
▷ Maximum class complexity | 199.00 |
Average method complexity | 67.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
259 compressed PNG files occupy 0.51MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Images/Flags/CH.png | 0.12KB | 0.12KB | 0.00% |
Images/Flags/AZ.png | 0.40KB | 0.41KB | 0.00% |
Images/Flags/ME.png | 0.62KB | 0.67KB | 0.00% |
Images/Flags/IT.png | 0.12KB | 0.12KB | ▼ 4.07% |
Images/Flags/MQ.png | 0.30KB | 0.28KB | ▼ 5.26% |