Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼6.39ms] Passed 4 tests
Analyzing server-side resources used by Leaf CRM
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.71 ▼1.66 |
Dashboard /wp-admin | 3.47 ▲0.17 | 52.16 ▼0.73 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.06 ▼15.67 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 95.90 ▼7.49 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.77 ▲2.47 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Leaf CRM
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲95 | 14.80 ▲0.52 | 2.01 ▲0.05 | 43.55 ▲3.12 |
Dashboard /wp-admin | 2,265 ▲85 | 5.83 ▲0.29 | 94.83 ▲6.63 | 30.44 ▼16.44 |
Posts /wp-admin/edit.php | 2,171 ▲71 | 2.29 ▲0.32 | 40.14 ▼4.33 | 32.04 ▼5.04 |
Add New Post /wp-admin/post-new.php | 1,704 ▲176 | 22.81 ▼0.24 | 639.21 ▼54.17 | 59.35 ▼23.13 |
Media Library /wp-admin/upload.php | 1,535 ▲135 | 4.43 ▲0.24 | 100.98 ▼6.30 | 40.42 ▼4.56 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/leaf-crm/includes/contact-forms/class-leaf-crm-ninja-form.php
- > /wp-content/plugins/leaf-crm/admin/partials/leaf-crm-admin-display.php
- > /wp-content/plugins/leaf-crm/includes/contact-forms/class-leaf-crm-forminator-form.php
- > /wp-content/plugins/leaf-crm/includes/class-leaf-crm-api.php
- > /wp-content/plugins/leaf-crm/includes/contact-forms/class-leaf-crm-cf7.php
- > /wp-content/plugins/leaf-crm/includes/contact-forms/class-leaf-crm-wpforms.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in leaf-crm/assets to your readme.txt
- Donate link: Please fix this invalid url: ""
leaf-crm/leaf-crm.php 92% from 13 tests
"Leaf CRM" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 155 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,690 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 209 | 590 | 889 |
CSS | 3 | 82 | 10 | 665 |
SVG | 2 | 0 | 0 | 75 |
PO File | 1 | 14 | 18 | 56 |
JavaScript | 3 | 2 | 39 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 14 | 26.42% |
▷ Public methods | 36 | 67.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 17 | 32.08% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 15 | |
▷ Global constants | 1 | 6.67% |
▷ Class constants | 14 | 93.33% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/wordpress-leaf-integration.png | 25.03KB | 10.73KB | ▼ 57.13% |
admin/img/contact-forms/ninjaforms.png | 4.62KB | 3.78KB | ▼ 18.04% |
admin/img/contact-forms/forminator.png | 4.90KB | 2.20KB | ▼ 55.15% |