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.34MB] [CPU: ▼4.45ms] Passed 4 tests
A check of server-side resources used by Gravity Forms Click & Pledge
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 39.14 ▲0.82 |
Dashboard /wp-admin | 3.67 ▲0.37 | 45.19 ▼6.67 |
Posts /wp-admin/edit.php | 3.77 ▲0.42 | 49.15 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 83.76 ▼11.69 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 34.16 ▼0.27 |
Server storage [IO: ▲0.94MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options |
---|
gfcnp_plugin |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Gravity Forms Click & Pledge: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲52 | 14.53 ▲0.30 | 1.50 ▼0.17 | 43.79 ▼0.43 |
Dashboard /wp-admin | 2,204 ▲27 | 5.62 ▼0.05 | 94.05 ▼6.28 | 39.68 ▼4.42 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.95 ▼0.05 | 38.76 ▲0.37 | 41.55 ▲6.38 |
Add New Post /wp-admin/post-new.php | 1,375 ▼152 | 17.35 ▼5.58 | 544.48 ▼76.63 | 30.73 ▼17.90 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.24 ▲0.04 | 97.55 ▲1.00 | 38.87 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- gfcnp_plugin
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-click-pledge/class.GFCnpRecurringField.php:1672
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/gravity-forms-click-pledge/views/admin-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gravity-forms-click-pledge/class.GFCnpPlugin.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/gravity-forms-click-pledge/class.GFCnpEcheckField.php:445
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Requires at least: The plugin version is formatted incorrectly
- Screenshots: Please add images for these screenshots: #1 (Settings page), #2 (Form Editor), #3 (Form display in front end), #4 (Credit Card Error display), #5 (Click & Pledge feed), #6 (Recurring Field), #7 (Credit Card Fields), #8 (eCheck Fields)
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
gravity-forms-click-pledge/gravityforms-cnp.php 85% from 13 tests
The main file in "Gravity Forms Click & Pledge" v. 4.23110000-WP6.4.1-G... serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "4.23110000-WP6.4.1-G...")
- Main file name: Name the main plugin file the same as the plugin slug ("gravity-forms-click-pledge.php" instead of "gravityforms-cnp.php")
Code Analysis 97% from 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
No dangerous file extensions were detected8,349 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 1,553 | 1,260 | 6,756 |
JavaScript | 10 | 245 | 133 | 931 |
XML | 2 | 0 | 0 | 622 |
CSS | 1 | 7 | 1 | 40 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 256)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 98.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 384.00 |
Average method complexity | 8.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 256.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 | 193 | |
▷ Static methods | 65 | 33.68% |
▷ Public methods | 167 | 86.53% |
▷ Protected methods | 14 | 7.25% |
▷ Private methods | 12 | 6.22% |
Functions | 9 | |
▷ Named functions | 3 | 33.33% |
▷ Anonymous functions | 6 | 66.67% |
Constants | 21 | |
▷ Global constants | 21 | 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
13 PNG files occupy 0.45MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 53.87KB | 15.36KB | ▼ 71.49% |
screenshot-6.png | 52.42KB | 15.97KB | ▼ 69.54% |
images/cnp logo.png | 35.90KB | 6.68KB | ▼ 81.40% |
screenshot-1.png | 93.46KB | 28.09KB | ▼ 69.95% |
screenshot-5.png | 41.08KB | 16.10KB | ▼ 60.81% |