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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.13ms] Passed 4 tests
This is a short check of server-side resources used by Gravity Forms - Uploads as Attachments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.98 ▲1.24 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.80 ▲0.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.02 ▼0.49 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 84.33 ▼18.19 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.37 ▲3.41 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Gravity Forms - Uploads as Attachments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲87 | 14.23 ▼0.25 | 1.94 ▲0.02 | 38.65 ▼8.10 |
Dashboard /wp-admin | 2,279 ▲99 | 5.55 ▼0.12 | 89.44 ▼1.15 | 47.03 ▲3.28 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 2.15 ▲0.14 | 42.31 ▲3.65 | 40.40 ▲4.75 |
Add New Post /wp-admin/post-new.php | 1,603 ▲74 | 23.59 ▲0.38 | 664.61 ▲1.57 | 56.15 ▼12.36 |
Media Library /wp-admin/upload.php | 1,487 ▲87 | 4.19 ▼0.03 | 100.84 ▼7.45 | 45.50 ▲0.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function ElegantModules\\GFUploadsAttachments\\add_filter() in wp-content/plugins/gf-uploads-as-attachments/includes/class-notifications.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function ElegantModules\\GFUploadsAttachments\\add_action() in wp-content/plugins/gf-uploads-as-attachments/includes/class-settings.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: notification, attachment, attachments, email, gravity forms...
gf-uploads-as-attachments/gforms-uploads-as-attachments.php 92% from 13 tests
The main PHP script in "Gravity Forms - Uploads as Attachments" version 1.3.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gf-uploads-as-attachments.php" instead of "gforms-uploads-as-attachments.php")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin315 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 69 | 315 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 1 | 7.14% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin