Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.18ms] Passed 4 tests
Analyzing server-side resources used by Simple Email Form
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.20 ▼0.25 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.02 ▼16.93 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 44.94 ▼4.39 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 81.15 ▼15.13 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 37.20 ▲5.32 |
Simple Email Form /wp-admin/options-general.php?page=simple-email-form | 3.27 | 31.56 |
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: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
simple-email-form-version |
Browser metrics Passed 4 tests
Simple Email Form: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.33 ▼0.93 | 1.91 ▲0.09 | 46.31 ▼1.65 |
Dashboard /wp-admin | 2,210 ▲19 | 5.86 ▲0.99 | 108.89 ▲0.32 | 40.14 ▲0.08 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 1.98 ▼0.08 | 39.28 ▼1.35 | 35.62 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.30 ▲5.15 | 666.52 ▲38.59 | 48.75 ▼8.96 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.25 ▼0.01 | 93.25 ▼7.40 | 42.39 ▼2.47 |
Simple Email Form /wp-admin/options-general.php?page=simple-email-form | 872 | 2.05 | 25.95 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- simple-email-form-version
- widget_recent-posts
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 everything seems fine, this is not 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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'simple_email_form' not found in wp-content/plugins/snsimple-email/templates/simple-email-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/snsimple-email/simple-email-form.php:41
- > 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/snsimple-email/simple-email-form.php on line 37
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: form, simple, email, recaptcha, contact...
snsimple-email/simple-email-form.php 92% from 13 tests
The main PHP file in "Simple Email Form" ver. 2.0.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("snsimple-email.php" instead of "simple-email-form.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected489 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 73 | 251 |
JavaScript | 4 | 11 | 8 | 104 |
PO File | 1 | 28 | 28 | 84 |
CSS | 2 | 6 | 0 | 50 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 43.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin