Benchmarks
Plugin footprint 65% 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: ▲0.05MB] [CPU: ▼8.53ms] Passed 4 tests
Analyzing server-side resources used by CRM Perks Forms - Wordpress Form Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.41 ▲0.48 |
Dashboard /wp-admin | 3.37 ▲0.02 | 47.47 ▼19.47 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 45.48 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 97.56 ▼10.48 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.72 ▼0.11 |
Server storage [IO: ▲5.92MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 190 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_cfx_form_forms |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
cfx_form_plugin_version |
db_upgraded |
widget_recent-comments |
crm_perks_upload_folder |
Browser metrics Passed 4 tests
CRM Perks Forms - Wordpress Form Builder: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 14.35 ▼0.28 | 1.73 ▲0.19 | 41.73 ▲1.88 |
Dashboard /wp-admin | 2,229 ▲51 | 5.56 ▼0.12 | 85.78 ▼13.02 | 37.67 ▼1.93 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 1.97 ▼0.04 | 33.86 ▼5.81 | 33.15 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,551 ▲17 | 18.34 ▼0.04 | 599.05 ▼0.22 | 64.80 ▲1.89 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.23 ▼0.02 | 97.81 ▼2.66 | 39.35 ▼4.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_cfx_form_forms
- The uninstall procedure has failed, leaving 8 options in the database
- crm_perks_upload_folder
- widget_recent-posts
- cfx_form_plugin_version
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/crm-perks-forms/images/captcha.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crm-perks-forms/includes/editor-btn.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/crm-perks-forms/crm-perks-forms.php:64
- > 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 issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: best form builder, free form builder, contact form, visual form builder, form builder
crm-perks-forms/crm-perks-forms.php Passed 13 tests
"CRM Perks Forms - Wordpress Form Builder" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
62 characters long description:
Create beautiful contact forms , popups with floating buttons.
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
There were no executable files found in this plugin13,394 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,058 | 69,333 | 9,689 |
CSS | 9 | 106 | 100 | 1,817 |
JavaScript | 10 | 131 | 346 | 1,063 |
SVG | 1 | 0 | 0 | 640 |
LESS | 1 | 7 | 4 | 185 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 154)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 120.12 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 449.00 |
Average method complexity | 8.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 154.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 35 | 28.93% |
▷ Public methods | 106 | 87.60% |
▷ Protected methods | 9 | 7.44% |
▷ Private methods | 6 | 4.96% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
127 PNG files occupy 2.46MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg-light.png | 115.51KB | 125.23KB | 0.00% |
css/box-5/images/border.png | 0.14KB | 0.16KB | 0.00% |
images/icons/chat13.png | 0.55KB | 0.35KB | ▼ 36.70% |
css/images/ui-bg_gloss-wave_35_f6a828_500x100.png | 5.68KB | 1.83KB | ▼ 67.77% |
images/themes/colored-border-light-bg.png | 22.08KB | 23.75KB | 0.00% |