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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.53ms] Passed 4 tests
A check of server-side resources used by Contact Form 7 - SalesKing CRM Addon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.82 ▼2.04 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.65 ▼3.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.63 ▼3.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.45 ▼16.84 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.27 ▲2.08 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Contact Form 7 - SalesKing CRM Addon
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.34 ▼0.19 | 1.98 ▼0.25 | 45.54 ▲0.96 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.09 | 93.21 ▼4.03 | 37.93 ▼3.59 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.03 | 39.87 ▲3.25 | 35.26 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.29 ▼0.27 | 693.29 ▼1.38 | 59.22 ▲3.14 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.11 ▼0.10 | 116.30 ▲9.38 | 46.45 ▲0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
The following issues need your attention
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/contact-form-7-salesking-crm-addon/cf7-salesking.php on line 38
- > PHP Fatal error
Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/contact-form-7-salesking-crm-addon/cf7-salesking.php:40
- > PHP Fatal error
Uncaught Exception: missing salesking.php library file in wp-content/plugins/contact-form-7-salesking-crm-addon/vendor/salesking/object.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contact-form-7-salesking-crm-addon/models/sk_cf.class.php:4
- > PHP Fatal error
Uncaught Exception: missing salesking.php library file in wp-content/plugins/contact-form-7-salesking-crm-addon/vendor/salesking/collection.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/contact-form-7-salesking-crm-addon/models/sk_cf_admin.class.php:6
- > PHP Fatal error
Uncaught Exception: missing salesking.php library file in wp-content/plugins/contact-form-7-salesking-crm-addon/vendor/salesking/helper.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/contact-form-7-salesking-crm-addon/cf7-salesking.php on line 38
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/contact-form-7-salesking-crm-addon/cf7-salesking.php on line 38
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Activate the SalesKing integration on a form), #2 (Map fields collected by a form)
contact-form-7-salesking-crm-addon/cf7-salesking.php 92% from 13 tests
The principal PHP file in "Contact Form 7 - SalesKing CRM Addon" v. 1.1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("contact-form-7-salesking-crm-addon.php" instead of "cf7-salesking.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
No dangerous file extensions were detected6,886 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 32 | 8 | 0 | 5,721 |
PHP | 8 | 229 | 734 | 1,110 |
JavaScript | 1 | 9 | 3 | 55 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 74 | |
▷ Static methods | 3 | 4.05% |
▷ Public methods | 70 | 94.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.41% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 86.00KB | 30.90KB | ▼ 64.06% |
screenshot-1.png | 29.55KB | 11.56KB | ▼ 60.89% |