Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/mag-mailer-form/mag-mailer-form.php+510
Use of undefined constant mag_mailer_enqueuescripts - assumed 'mag_mailer_enqueuescripts' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.72MB] [CPU: ▼56.81ms] Passed 4 tests
Server-side resources used by Mag mailer form
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.20 | 6.17 ▼40.55 |
Dashboard /wp-admin | 2.28 ▼1.02 | 6.80 ▼45.33 |
Posts /wp-admin/edit.php | 2.29 ▼1.07 | 7.26 ▼43.33 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.60 | 7.18 ▼98.02 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 6.52 ▼34.98 |
Add New /wp-admin/post-new.php?post_type=mag-mailer-form | 2.29 | 10.36 |
All Items /wp-admin/edit.php?post_type=mag-mailer-form | 2.29 | 6.47 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mag mailer form
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.66 ▼0.62 | 8.41 ▲6.36 | 41.86 ▼5.02 |
Dashboard /wp-admin | 2,222 ▲45 | 5.63 ▼0.04 | 86.62 ▼5.57 | 43.85 ▲6.84 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.04 ▼0.11 | 42.34 ▲6.73 | 36.04 ▼0.02 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.26 ▲0.18 | 683.87 ▼40.81 | 54.95 ▲2.48 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.22 ▲0.03 | 97.56 ▼20.38 | 43.57 ▼5.66 |
Add New /wp-admin/post-new.php?post_type=mag-mailer-form | 1,729 | 2.55 | 53.51 | 58.48 |
All Items /wp-admin/edit.php?post_type=mag-mailer-form | 1,091 | 2.08 | 30.65 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/mag-mailer-form/mag-mailer-form.php+510
Use of undefined constant mag_mailer_enqueuescripts - assumed 'mag_mailer_enqueuescripts' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mag-mailer-form
- > POST request to /wp-admin/admin-ajax.php
- > Warning in wp-content/plugins/mag-mailer-form/mag-mailer-form.php+510
Use of undefined constant mag_mailer_enqueuescripts - assumed 'mag_mailer_enqueuescripts' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mag-mailer-form/mag-mailer-form.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mag-mailer-form/mag-mailer-form.php:13
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 93% 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
3 plugin tags: forms, email, contact form
mag-mailer-form/mag-mailer-form.php 85% from 13 tests
"Mag mailer form" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected714 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 93 | 36 | 489 |
JavaScript | 2 | 26 | 0 | 105 |
HTML | 1 | 1 | 0 | 65 |
CSS | 1 | 13 | 1 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 27 | |
▷ Named functions | 27 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
3 PNG files occupy 0.13MB with 0.08MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 47.59KB | 19.12KB | ▼ 59.82% |
assets/screenshot-1.png | 38.76KB | 15.55KB | ▼ 59.89% |
assets/screenshot-2.png | 41.67KB | 16.32KB | ▼ 60.83% |