Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.13MB] [CPU: ▼41.18ms] Passed 4 tests
This is a short check of server-side resources used by WordPress to Freshsales Integration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.62 | 13.99 ▼24.90 |
Dashboard /wp-admin | 2.89 ▼0.42 | 18.77 ▼29.93 |
Posts /wp-admin/edit.php | 2.89 ▼0.47 | 17.95 ▼30.27 |
Add New Post /wp-admin/post-new.php | 2.89 ▼3.00 | 18.95 ▼79.63 |
Media Library /wp-admin/upload.php | 2.89 ▼0.34 | 17.50 ▼17.62 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress to Freshsales Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,966 ▲220 | 13.72 ▼0.64 | 9.56 ▲7.83 | 37.40 ▼6.36 |
Dashboard /wp-admin | 2,235 ▲46 | 4.95 ▼0.97 | 110.26 ▲1.83 | 43.54 ▲0.18 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.04 ▼0.01 | 39.74 ▲1.63 | 33.96 ▲0.29 |
Add New Post /wp-admin/post-new.php | 1,542 ▼5 | 23.22 ▲5.07 | 627.03 ▼2.72 | 58.69 ▲1.70 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.23 ▲0.10 | 98.51 ▼4.57 | 40.80 ▼2.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
SRP 0% 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/codup-wp-freshsales/templates/admin/gravity-form-tab/gravityform-field-mapping.php
- 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: lead_fields in wp-content/plugins/codup-wp-freshsales/templates/admin/contact-form-tab/freshsales-field-mapping.php on line 8
- > PHP Notice
Undefined variable: form_fields in wp-content/plugins/codup-wp-freshsales/templates/admin/gravity-form-tab/gravityform-field-mapping.php on line 9
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/codup-wp-freshsales/templates/admin/gravity-form-tab/gravityform-field-mapping.php on line 15
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/codup-wp-freshsales/templates/admin/contact-form-tab/freshsales-field-mapping.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/codup-wp-freshsales/templates/admin/contact-form-tab/wpcf7-freshsales-tab.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/codup-wp-freshsales/templates/admin/formidable-form-tab/wpff-freshsales-tab.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/codup-wp-freshsales/includes/functions.php:38
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/codup-wp-freshsales/templates/admin/gravity-form-tab/gravityform-field-mapping.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/codup-wp-freshsales/includes/freshsales-lead-fields.php:10
- > PHP Notice
Undefined variable: lead_fields in wp-content/plugins/codup-wp-freshsales/templates/admin/gravity-form-tab/gravityform-field-mapping.php on line 15
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in codup-wp-freshsales/assets to your readme.txt
codup-wp-freshsales/wp-freshsales-integration.php 92% from 13 tests
The principal PHP file in "WordPress to Freshsales Integration" v. 1.3.2.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("codup-wp-freshsales.php" instead of "wp-freshsales-integration.php")
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,165 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 129 | 396 | 1,067 |
JavaScript | 2 | 10 | 0 | 55 |
CSS | 2 | 4 | 0 | 43 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 16.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 2 | 3.70% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin