Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼1.85ms] Passed 4 tests
Analyzing server-side resources used by Leads CRM for WordPress WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 39.89 ▼3.91 |
Dashboard /wp-admin | 3.87 ▲0.56 | 48.23 ▼3.01 |
Posts /wp-admin/edit.php | 3.92 ▲0.56 | 51.27 ▼1.64 |
Add New Post /wp-admin/post-new.php | 6.41 ▲0.52 | 92.33 ▲1.18 |
Media Library /wp-admin/upload.php | 3.73 ▲0.50 | 40.63 ▲6.80 |
Leads /wp-admin/admin.php?page=zleadscrm_bookmarks | 3.90 | 41.71 |
Analytics /wp-admin/admin.php?page=zleadscrm_insights | 3.74 | 38.00 |
Settings /wp-admin/admin.php?page=zleadscrm_settings | 3.75 | 39.89 |
Add-ons /wp-admin/admin.php?page=zleadscrm_addons | 3.72 | 34.91 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 46 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_zleadscrm_leads_bookmarks |
wp_zleadscrm_leads_user_analytics |
wp_zleadscrm_leads_edit_audit |
wp_zleadscrm_leads_interactions |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
zleadscrm_statistics_date |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Leads CRM for WordPress WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲107 | 13.63 ▼0.56 | 1.67 ▼0.32 | 38.32 ▼6.10 |
Dashboard /wp-admin | 2,284 ▲96 | 5.19 ▼0.68 | 112.42 ▼3.86 | 41.29 ▼2.30 |
Posts /wp-admin/edit.php | 2,167 ▲78 | 2.41 ▲0.41 | 42.18 ▲4.16 | 36.64 ▲0.89 |
Add New Post /wp-admin/post-new.php | 1,574 ▲37 | 23.86 ▲5.60 | 640.64 ▲1.58 | 35.83 ▼10.36 |
Media Library /wp-admin/upload.php | 1,469 ▲78 | 4.59 ▲0.38 | 101.46 ▼3.03 | 43.70 ▼1.03 |
Leads /wp-admin/admin.php?page=zleadscrm_bookmarks | 987 | 2.08 | 28.02 | 32.86 |
Analytics /wp-admin/admin.php?page=zleadscrm_insights | 911 | 2.11 | 29.06 | 28.59 |
Settings /wp-admin/admin.php?page=zleadscrm_settings | 2,742 | 2.26 | 28.28 | 48.39 |
Add-ons /wp-admin/admin.php?page=zleadscrm_addons | 1,101 | 2.26 | 26.64 | 37.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure failed, leaving 4 tables in the database
- wp_zleadscrm_leads_user_analytics
- wp_zleadscrm_leads_interactions
- wp_zleadscrm_leads_edit_audit
- wp_zleadscrm_leads_bookmarks
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- zleadscrm_statistics_date
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function zleadscrm_display_interaction_form() in wp-content/plugins/leads-crm/template/lead/add-new-lead/interactions.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ZLEADSCRM_BASIC_PLUGIN_DIRhelper/class-zleadscrm-core-lead-edit-audit.php' (include_path='.:/usr/share/php') in wp-content/plugins/leads-crm/template/lead/add-new-lead/audit.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/leads-crm/template/lead/interactions/form.php:1
- > PHP Warning
require_once(ZLEADSCRM_BASIC_PLUGIN_DIRhelper/class-zleadscrm-core-lead-edit-audit.php): failed to open stream: No such file or directory in wp-content/plugins/leads-crm/template/lead/add-new-lead/audit.php on line 7
- > PHP Warning
Use of undefined constant ZLEADSCRM_BASIC_PLUGIN_DIR - assumed 'ZLEADSCRM_BASIC_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leads-crm/template/lead/add-new-lead/audit.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/leads-crm/template/interactions/form.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function zleadscrm_display_interaction_form() in wp-content/plugins/leads-crm/template/interactions/interactions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/leads-crm/leads-basic-functions.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/leads-crm/template/lead/add-new-lead/general.php:2
- > 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 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
Attributes that require attention:
- Tags: There are too many tags (32 tag instead of maximum 10)
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in leads-crm/assets to your readme.txt
leads-crm/leads-basic.php 77% from 13 tests
The main PHP file in "Leads CRM for WordPress WooCommerce" ver. 2.0.13 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.0" instead of "2.4.0")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("leads-crm.php" instead of "leads-basic.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin7,108 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 689 | 35 | 5,036 |
CSS | 3 | 456 | 48 | 1,912 |
JavaScript | 2 | 38 | 1 | 158 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 52.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 158.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 11 | 17.19% |
▷ Public methods | 61 | 95.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.69% |
Functions | 41 | |
▷ Named functions | 36 | 87.80% |
▷ Anonymous functions | 5 | 12.20% |
Constants | 2 | |
▷ Global constants | 2 | 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
12 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/jQuery-ui/ui-bg_glass_65_ffffff_1x400.png | 0.26KB | 0.09KB | ▼ 66.79% |
asset/jQuery-ui/ui-icons_888888_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
asset/google-logo.png | 2.08KB | 2.14KB | 0.00% |
asset/jQuery-ui/ui-bg_glass_55_fbf9ee_1x400.png | 0.38KB | 0.12KB | ▼ 67.68% |
asset/jQuery-ui/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.32KB | 0.18KB | ▼ 44.00% |