Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.36ms] Passed 4 tests
An overview of server-side resources used by Add-on SweetAlert Contact Form 7
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 56.51 ▲7.60 |
Dashboard /wp-admin | 3.41 ▲0.00 | 35.31 ▲0.11 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 39.35 ▲1.75 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 98.41 ▼1,172.14 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 25.19 ▲0.83 |
SweetAlert2 for CF7 /wp-admin/admin.php?page=sweetalert-cf7 | 3.10 | 21.20 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Add-on SweetAlert Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲73 | 16.17 ▲0.55 | 6.62 ▼0.18 | 2.84 ▼0.28 |
Dashboard /wp-admin | 2,892 ▲41 | 6.13 ▲0.03 | 120.55 ▼23.67 | 160.66 ▼2.61 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.23 ▲0.00 | 61.01 ▼2.38 | 140.81 ▼3.29 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.85 ▲6.19 | 460.44 ▲28.56 | 164.36 ▲2.55 |
Media Library /wp-admin/upload.php | 1,695 ▼6 | 5.54 ▲0.01 | 138.02 ▼0.01 | 189.76 ▼10.01 |
SweetAlert2 for CF7 /wp-admin/admin.php?page=sweetalert-cf7 | 28 | 0.94 | 0.04 | 19.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=sweetalert-cf7
- > Network (severe)
wp-admin/admin.php?page=sweetalert-cf7 - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: sweet alert, contact form, contact form 7, cf7, sweetalert2
addon-sweetalert-contact-form-7/addon-sweetalert-contact-form-7.php Passed 13 tests
The primary PHP file in "Add-on SweetAlert Contact Form 7" version 1.1.1 is used by WordPress to initiate all plugin functionality
60 characters long description:
Add SweetAlert2 script in Contact Form 7 submission process.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin236 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 26 | 29 | 232 |
JavaScript | 3 | 0 | 0 | 3 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 13 | |
▷ Named functions | 13 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected