Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.81ms] Passed 4 tests
A check of server-side resources used by Gravity Forms Square Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.68 ▼9.12 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.13 ▲0.87 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.72 ▼3.32 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 92.34 ▼7.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.39 ▲3.48 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_gfsr_transactions |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Gravity Forms Square Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.67 ▼1.15 | 1.74 ▼0.43 | 37.89 ▼4.88 |
Dashboard /wp-admin | 2,213 ▲25 | 5.84 ▲0.93 | 116.06 ▲2.75 | 46.56 ▲2.85 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.03 ▲0.03 | 39.39 ▼0.79 | 34.87 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.23 ▼0.01 | 665.97 ▲49.29 | 64.40 ▲1.93 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.20 ▲0.01 | 106.12 ▲4.61 | 45.90 ▲2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_gfsr_transactions
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GF_Field' not found in wp-content/plugins/pay-with-square-in-gravity-forms/includes/class-square-gf.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pay-with-square-in-gravity-forms/includes/views/entry-detail-square-payment-history.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pay-with-square-in-gravity-forms/includes/views/entry-detail-square-payment-details.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pay-with-square-in-gravity-forms/includes/views/square-gf-settings.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #2, #3, #4, #5, #6, #7, #8, #9 in pay-with-square-in-gravity-forms/assets to your readme.txt
pay-with-square-in-gravity-forms/gf-square.php 85% from 13 tests
Analyzing the main PHP file in "Gravity Forms Square Lite" version 1.1
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("pay-with-square-in-gravity-forms.php" instead of "gf-square.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected3,872 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 305 | 87 | 1,420 |
SVG | 23 | 5 | 23 | 1,410 |
CSS | 2 | 53 | 73 | 625 |
JavaScript | 3 | 54 | 24 | 282 |
PO File | 1 | 29 | 7 | 106 |
Markdown | 1 | 16 | 0 | 29 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 74.67 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 47 | |
▷ Static methods | 1 | 2.13% |
▷ Public methods | 46 | 97.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.13% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/_visa.png | 6.96KB | 2.75KB | ▼ 60.47% |
assets/img/_discover.png | 5.56KB | 2.60KB | ▼ 53.28% |
assets/img/_card.png | 10.82KB | 3.65KB | ▼ 66.25% |
assets/img/_mastercard.png | 8.41KB | 3.12KB | ▼ 62.92% |
assets/img/_dinerclub.png | 6.07KB | 2.74KB | ▼ 54.81% |