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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼13.97ms] Passed 4 tests
This is a short check of server-side resources used by HelloLeads CRM Form Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 32.76 ▼14.87 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.15 ▼9.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 42.08 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 83.63 ▼30.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.37 ▲1.45 |
Server storage [IO: ▲2.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for HelloLeads CRM Form Shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,037 ▲266 | 52.10 ▲37.79 | 25.12 ▲23.17 | 38.13 ▼12.08 |
Dashboard /wp-admin | 2,058 ▼124 | 24.26 ▲18.36 | 469.98 ▲351.12 | 71.67 ▲22.04 |
Posts /wp-admin/edit.php | 2,135 ▲49 | 44.35 ▲42.36 | 346.23 ▲305.88 | 55.78 ▲20.10 |
Add New Post /wp-admin/post-new.php | 1,634 ▲120 | 38.50 ▲20.80 | 887.04 ▲220.29 | 26.90 ▼37.82 |
Media Library /wp-admin/upload.php | 1,494 ▲103 | 47.25 ▲43.06 | 335.00 ▲233.12 | 85.39 ▲40.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant HLS_CRMF_US_PLUGIN_DIR - assumed 'HLS_CRMF_US_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/hls_list.php on line 2
- > PHP Notice
Undefined variable: hls_key in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/hls_crm_shortcode.php on line 2
- > PHP Warning
Use of undefined constant HLS_CRMF_US_PLUGIN_DIR - assumed 'HLS_CRMF_US_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/config.php on line 2
- > PHP Warning
require_once(HLS_CRMF_US_PLUGIN_DIR/inc/template/header.php): failed to open stream: No such file or directory in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/hls_list.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hls-crm-form-shortcode/inc/loader.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/hls-crm-form-shortcode/inc/template/header.php:5
- > PHP Warning
require_once(HLS_CRMF_US_PLUGIN_DIR/inc/template/header.php): failed to open stream: No such file or directory in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/config.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/hls_crm_shortcode.php:13
- > PHP Fatal error
require_once(): Failed opening required 'HLS_CRMF_US_PLUGIN_DIR/inc/template/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/hls_list.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'HLS_CRMF_US_PLUGIN_DIR/inc/template/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/hls-crm-form-shortcode/inc/template/view/config.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== hls-crm-form-shortcode ===
) - Requires php: Invalid version format
hls-crm-form-shortcode/hls_crm_form.php 77% from 13 tests
The main PHP script in "HelloLeads CRM Form Shortcode" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hls-crm-form-shortcode.php" instead of "hls_crm_form.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "4.4")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,491 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 349 | 273 | 1,866 |
PHP | 6 | 295 | 59 | 385 |
CSS | 5 | 5 | 25 | 240 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 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
5 PNG files occupy 0.39MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 128.29KB | 38.96KB | ▼ 69.63% |
assets/icon-128x128.png | 12.21KB | 6.63KB | ▼ 45.66% |
assets/screenshot-1.png | 125.47KB | 36.60KB | ▼ 70.83% |
inc/template/img/icon.png | 1.02KB | 0.71KB | ▼ 30.10% |
inc/template/img/HLS_Logo.png | 136.32KB | 29.58KB | ▼ 78.30% |