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.02MB] [CPU: ▼7.03ms] Passed 4 tests
Analyzing server-side resources used by Qualpay Add-on for Gravity Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.91 ▲0.74 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.07 ▼4.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.47 ▼1.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.93 ▼22.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.20 ▲1.36 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Qualpay Add-on for Gravity Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.17 ▼1.39 | 1.71 ▼0.07 | 42.81 ▲1.77 |
Dashboard /wp-admin | 2,206 ▲21 | 5.88 ▲0.77 | 107.46 ▲3.44 | 37.55 ▼6.06 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 43.48 ▲7.53 | 35.44 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,536 ▲23 | 23.30 ▲5.84 | 648.47 ▼37.93 | 55.77 ▲4.63 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.24 ▲0.03 | 91.85 ▼21.59 | 40.34 ▼5.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
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
Even though no errors were found, this is by no means an exhaustive test
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 items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/qualpay-payment-for-gravity-forms/includes/api/Psr/Log/AbstractLogger.php:12
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/qualpay-payment-for-gravity-forms/includes/api/Psr/Log/NullLogger.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: gravity, subscription, credit cards, recurring, payment
qualpay-payment-for-gravity-forms/gravityformsqualpay.php 85% from 13 tests
Analyzing the main PHP file in "Qualpay Add-on for Gravity Forms" version 1.3.2
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("qualpay-payment-for-gravity-forms.php" instead of "gravityformsqualpay.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin5,583 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 2,022 | 3,332 | 5,457 |
JavaScript | 4 | 83 | 67 | 126 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 23.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 365.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 14 | |
▷ Abstract classes | 1 | 7.14% |
▷ Concrete classes | 13 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 18 | 10.17% |
▷ Public methods | 158 | 89.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 19 | 10.73% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 8 | 33.33% |
▷ Class constants | 16 | 66.67% |
▷ Public constants | 16 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/images/qualpay-icon-white.png | 68.65KB | 46.23KB | ▼ 32.66% |