Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.66MB] [CPU: ▲5.23ms] Passed 4 tests
A check of server-side resources used by Responsive Contact Form Builder & Lead Generation Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 43.46 ▲2.26 |
Dashboard /wp-admin | 4.03 ▲0.72 | 56.93 ▲3.62 |
Posts /wp-admin/edit.php | 4.08 ▲0.72 | 59.62 ▲9.01 |
Add New Post /wp-admin/post-new.php | 6.55 ▲0.66 | 92.91 ▲6.02 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 50.06 ▲16.05 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 3.88 | 45.57 |
Add Forms /wp-admin/admin.php?page=add-new-form | 3.87 | 44.98 |
Premium Version /wp-admin/admin.php?page=pro-form-leads | 3.89 | 44.00 |
View Leads /wp-admin/admin.php?page=all-form-leads | 3.87 | 47.23 |
Lead Form Builder /wp-admin/admin.php?page=wplf-plugin-menu | 3.87 | 45.37 |
Server storage [IO: ▲2.70MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 106 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_lead_form_extension |
wp_lead_form |
wp_th_popup |
wp_lead_form_options |
wp_lead_form_data |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_lfb-form-builder |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Responsive Contact Form Builder & Lead Generation Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,968 ▲206 | 13.94 ▼0.30 | 12.02 ▲10.37 | 41.73 ▼5.02 |
Dashboard /wp-admin | 2,261 ▲84 | 5.65 ▲0.07 | 91.46 ▼10.29 | 82.89 ▲39.47 |
Posts /wp-admin/edit.php | 2,181 ▲81 | 2.01 ▲0.04 | 38.66 ▲1.99 | 40.57 ▲3.20 |
Add New Post /wp-admin/post-new.php | 1,668 ▲137 | 23.03 ▲0.22 | 687.94 ▼3.80 | 197.80 ▲153.08 |
Media Library /wp-admin/upload.php | 1,475 ▲75 | 4.14 ▼0.03 | 99.03 ▼1.10 | 77.71 ▲35.18 |
ThemeHunk /wp-admin/admin.php?page=themehunk-plugins | 1,243 | 1.83 | 34.03 | 53.97 |
Add Forms /wp-admin/admin.php?page=add-new-form | 1,449 | 2.53 | 49.40 | 66.73 |
Premium Version /wp-admin/admin.php?page=pro-form-leads | 1,285 | 2.56 | 41.97 | 59.81 |
View Leads /wp-admin/admin.php?page=all-form-leads | 1,131 | 2.58 | 34.58 | 46.98 |
Lead Form Builder /wp-admin/admin.php?page=wplf-plugin-menu | 1,813 | 2.58 | 35.22 | 54.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 5 tables
- wp_th_popup
- wp_lead_form_extension
- wp_lead_form
- wp_lead_form_options
- wp_lead_form_data
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_lfb-form-builder
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lead-form-builder/notify/notify-html.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lead-form-builder/inc/themehunk-menu/th-option/sidebar.php:4
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/lead-form-builder/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/lead-form-builder/inc/themehunk-menu/admin-menu.php:4
- > PHP Warning
include_once(): Failed opening 'THEMEHUNK_PDIRth-option/header.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/lead-form-builder/inc/themehunk-menu/th-option/tab-html.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lead-form-builder/inc/options/option.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/lead-form-builder/inc/header.php:24
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lead-form-builder/inc/themehunk-menu/admin-menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/lead-form-builder/inc/themehunk-menu/th-option/header.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/lead-form-builder/inc/themehunk-menu/plugins-list.php:4
- > PHP Notice
Undefined variable: theme in wp-content/plugins/lead-form-builder/notify/notify-html.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wplf-plugin-menu
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'editor')" "TypeError: Cannot read properties of undefined (reading 'editor')\n at media_upload (/wp-content/plugins/lead-form-builder/js/upload.js?ver=1.8.6:5:42)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/lead-form-builder/js/upload.js?ver=1.8.6:36:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wplf-plugin-menu
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of undefined (reading 'editor')
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:
- Tags: There are too many tags (21 tag instead of maximum 10)
lead-form-builder/lead-form-builder.php 92% from 13 tests
The primary PHP file in "Responsive Contact Form Builder & Lead Generation Plugin" version 1.8.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 465 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected19,090 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 151 | 139 | 5,894 |
PHP | 28 | 838 | 317 | 4,761 |
SVG | 13 | 0 | 11 | 3,219 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
JavaScript | 6 | 429 | 656 | 1,690 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 20.92 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 123 | |
▷ Static methods | 1 | 0.81% |
▷ Public methods | 114 | 92.68% |
▷ Protected methods | 9 | 7.32% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 73 | |
▷ Global constants | 70 | 95.89% |
▷ Class constants | 3 | 4.11% |
▷ Public constants | 3 | 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
10 PNG files occupy 0.29MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/themehunk-menu/th-option/assets/images/th-shop-mania.png | 34.78KB | 11.98KB | ▼ 65.56% |
images/icon.png | 8.40KB | 0.67KB | ▼ 91.99% |
images/big-store-1.png | 27.35KB | 28.49KB | 0.00% |
notify/assets/images/th-shop-mania.png | 34.78KB | 11.98KB | ▼ 65.56% |
inc/themehunk-menu/th-option/assets/images/icon.png | 14.32KB | 7.45KB | ▼ 47.95% |