Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.75ms] Passed 4 tests
Server-side resources used by Per Form Confirmations for GiveWP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.42 ▼2.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.85 ▲4.67 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.26 ▼4.05 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.88 ▼13.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.03 ▲1.20 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Per Form Confirmations for GiveWP: 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,814 ▲53 | 14.51 ▲0.23 | 1.90 ▼0.01 | 46.18 ▲3.12 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.03 | 97.35 ▲8.86 | 43.01 ▼0.12 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.08 | 35.48 ▼5.27 | 34.10 ▼3.89 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.00 ▼0.24 | 645.53 ▼48.31 | 59.21 ▲2.97 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.19 ▲0.06 | 99.81 ▼11.06 | 44.78 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/per-form-confirmation-pages-for-givewp/includes/main-functions.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
7 plugin tags: wpml, donations, givewp, multilingual, receipt...
per-form-confirmation-pages-for-givewp/givewp-per-form-confirmations.php 85% from 13 tests
This is the main PHP file of "Per Form Confirmations for GiveWP" version 1.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("per-form-confirmation-pages-for-givewp.php" instead of "givewp-per-form-confirmations.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected571 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 127 | 234 | 374 |
PO File | 1 | 24 | 24 | 91 |
JavaScript | 1 | 11 | 5 | 48 |
CSS | 1 | 4 | 0 | 34 |
Markdown | 1 | 13 | 0 | 24 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 21.05% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin