Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.50MB] [CPU: ▼22.20ms] Passed 4 tests
Server-side resources used by Click & Pledge Connect Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.93 ▲0.46 | 61.60 ▲20.63 |
Dashboard /wp-admin | 3.45 ▲0.14 | 34.81 ▼17.83 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 39.28 ▼12.76 |
Add New Post /wp-admin/post-new.php | 3.45 ▼2.44 | 39.36 ▼57.65 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 36.77 ▼0.54 |
Settings /wp-admin/admin.php?page=cnp_formssettings | 3.45 | 35.86 |
Click & Pledge /wp-admin/admin.php?page=cnpcf_formshelp | 3.45 | 37.61 |
Server storage [IO: ▲3.22MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 71 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_cnp_forminfo |
wp_cnp_channeldtl |
wp_cnp_settingsdtl |
wp_cnp_formsdtl |
wp_cnp_channelgrp |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Click & Pledge Connect Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.81 ▼0.54 | 5.68 ▲3.86 | 43.24 ▼0.89 |
Dashboard /wp-admin | 2,232 ▲52 | 5.72 ▲0.19 | 85.71 ▼7.37 | 38.56 ▼2.55 |
Posts /wp-admin/edit.php | 2,143 ▲40 | 2.19 ▲0.19 | 37.74 ▼5.12 | 34.03 ▼1.12 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.25 ▲0.17 | 601.20 ▼63.41 | 52.44 ▼0.19 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.20 ▲0.04 | 89.92 ▼16.06 | 43.88 ▼5.36 |
Settings /wp-admin/admin.php?page=cnp_formssettings | 1,049 | 2.20 | 39.91 | 40.35 |
Click & Pledge /wp-admin/admin.php?page=cnpcf_formshelp | 956 | 1.76 | 25.56 | 36.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% 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
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_cnp_channeldtl
- wp_cnp_forminfo
- wp_cnp_formsdtl
- wp_cnp_channelgrp
- wp_cnp_settingsdtl
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 14 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cnpcf_formshelp
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+5
Undefined index: info
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+67
Undefined index: cnpviewid
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+101
Undefined index: act
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+119
Undefined variable: cnpsetid
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+123
Undefined variable: cnpsetAccountNumber
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+131
Undefined variable: cnpsetguid
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Notice in wp-content/plugins/click-pledge-connect/cnpSettings.php+145
Undefined variable: cnpsetfrndlynm
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/click-pledge-connect/cnpSettingmsgs.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant SOAP_1_1 - assumed 'SOAP_1_1' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-pledge-connect/getcnpactivecampaigns.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function current_time() in wp-content/plugins/click-pledge-connect/clickandpledge_form.php:20
- > PHP Warning
Use of undefined constant SOAP_1_1 - assumed 'SOAP_1_1' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-pledge-connect/getcnpditactivecampaigns.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/click-pledge-connect/getcnpactivechannels.php:6
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/click-pledge-connect/getcnpactivecampaigns.php:5
- > PHP Warning
Use of undefined constant SOAP_1_1 - assumed 'SOAP_1_1' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-pledge-connect/getcnpactivechannels.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/click-pledge-connect/getcnpditactivecampaigns.php:5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot set properties of undefined (setting '_DT_CellIndex')" "TypeError: Cannot set properties of undefined (setting '_DT_CellIndex')\n at Ja (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:24:263)\n at N (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:16:337)\n at HTMLTableRowElement.\u003Canonymous> (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:16:450)\n at /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1:2:1681\n at Function.map (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1:2:3967)\n at ce.fn.init.map (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1:2:1649)\n at oa (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:16:415)\n at e (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:92:431)\n at HTMLTableElement.\u003Canonymous> (/wp-content/plugins/click-pledge-connect/js/jquery.dataTables.min.js?ver=6.3.1:93:118)\n at Function.each (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1:2:3129)" undefined
- > GET request to /wp-admin/admin.php?page=cnp_formssettings
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot set properties of undefined (setting '_DT_CellIndex')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: forms, connect, click pledge, donation, ecommerce...
click-pledge-connect/clickandpledge_form.php 85% from 13 tests
"Click & Pledge Connect Plugin" version 02.2301020000-WP6.1....'s primary PHP file adds more information about the plugin and serves as the entry point for 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 ("click-pledge-connect.php" instead of "clickandpledge_form.php")
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "02.2301020000-WP6.1....")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin40,561 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 14 | 5,188 | 8,001 | 32,349 |
CSS | 7 | 631 | 180 | 5,246 |
PHP | 17 | 464 | 110 | 2,965 |
XML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 69 | |
▷ Named functions | 68 | 98.55% |
▷ Anonymous functions | 1 | 1.45% |
Constants | 15 | |
▷ Global constants | 15 | 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
14 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-cp.png | 5.18KB | 3.31KB | ▼ 36.14% |
css/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
images/sort_asc.png | 1.42KB | 0.97KB | ▼ 31.38% |
css/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.31KB | 0.18KB | ▼ 42.95% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |