Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▲1.58ms] Passed 4 tests
An overview of server-side resources used by Free Forms & CRM
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 48.52 ▲3.19 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.81 ▼5.14 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 55.39 ▲4.20 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 109.85 ▲14.27 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.83 ▲4.08 |
Free Forms & CRM /wp-admin/admin.php?page=wbs | 3.38 | 36.08 |
Free Forms & CRM /wp-admin/options-general.php?page=wbs-settings | 3.37 | 36.79 |
Install /wp-admin/admin.php?page=wbs-install | 3.36 | 35.21 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
wbs_options |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_free_forms_crm |
Browser metrics Passed 4 tests
A check of browser resources used by Free Forms & CRM
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.35 ▼0.25 | 1.78 ▼0.42 | 44.21 ▼5.34 |
Dashboard /wp-admin | 2,237 ▲72 | 5.69 ▲0.01 | 94.53 ▲0.83 | 35.92 ▼9.36 |
Posts /wp-admin/edit.php | 2,145 ▲42 | 2.23 ▲0.26 | 42.27 ▲3.45 | 37.64 ▲1.54 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.75 ▲0.92 | 644.16 ▼50.44 | 56.57 ▼10.87 |
Media Library /wp-admin/upload.php | 1,448 ▲48 | 4.29 ▲0.07 | 101.10 ▼10.54 | 43.48 ▼4.88 |
Free Forms & CRM /wp-admin/admin.php?page=wbs | 922 | 2.04 | 29.60 | 24.85 |
Free Forms & CRM /wp-admin/options-general.php?page=wbs-settings | 908 | 2.07 | 31.27 | 27.98 |
Install /wp-admin/admin.php?page=wbs-install | 927 | 2.17 | 40.30 | 36.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_free_forms_crm
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- wbs_options
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/free-forms-and-crm/Widget.class.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-forms-and-crm/free-forms-crm.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/login.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/jstranslation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/free-forms-and-crm/pages/links.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/free-forms-and-crm/pages/install.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/free-forms-and-crm/Plugin.class.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/media-button.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/free-forms-and-crm/pages/options.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
free-forms-and-crm/free-forms-crm.php 85% from 13 tests
The main file in "Free Forms & CRM" v. 1.4.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("free-forms-and-crm.php" instead of "free-forms-crm.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,279 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 38 | 50 | 1,167 |
PHP | 13 | 154 | 48 | 881 |
JavaScript | 4 | 20 | 5 | 231 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 48 | 87.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 12.73% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
23 PNG files occupy 1.04MB with 0.55MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 80.53KB | 41.39KB | ▼ 48.60% |
assets/screenshot-2.png | 71.69KB | 32.09KB | ▼ 55.24% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
assets/screenshot-5.png | 205.17KB | 63.50KB | ▼ 69.05% |
css/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.29KB | 0.15KB | ▼ 49.83% |