Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.34ms] Passed 4 tests
Server-side resources used by Gravity Forms: Notification Attachments
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.74 ▲0.90 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.99 ▼0.13 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.80 ▼5.20 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.01 ▼8.94 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.33 ▲4.65 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Gravity Forms: Notification Attachments
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.30 ▼0.06 | 1.87 ▲0.02 | 43.74 ▲1.02 |
Dashboard /wp-admin | 2,209 ▲21 | 5.81 ▼0.07 | 103.84 ▼3.47 | 39.08 ▼3.19 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 1.97 ▼0.05 | 39.33 ▼5.03 | 33.64 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,525 ▲11 | 23.44 ▲5.76 | 682.28 ▼5.86 | 53.72 ▼0.16 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▲0.01 | 98.69 ▼17.47 | 45.13 ▼5.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-forms-notification-attachments/gf-notification-attachment.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add a description for screenshot #0 in gravity-forms-notification-attachments/assets to your readme.txt
- Screenshots: Please add an image for screenshot #1 (The plugin adds logic to the notification edit screen.)
gravity-forms-notification-attachments/gf-notification-attachment.php 85% from 13 tests
The main file in "Gravity Forms: Notification Attachments" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gravity-forms-notification-attachments.php" instead of "gf-notification-attachment.php")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin223 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 24 | 48 | 127 |
JavaScript | 2 | 19 | 25 | 64 |
LESS | 1 | 0 | 0 | 31 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot.png | 23.08KB | 6.92KB | ▼ 70.04% |