Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.10ms] Passed 4 tests
A check of server-side resources used by Emercury for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 51.99 ▲8.76 |
Dashboard /wp-admin | 3.43 ▲0.12 | 62.40 ▲12.88 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 44.62 ▼3.32 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 91.69 ▼1.91 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.78 ▲0.88 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_emercury_forms |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_emercury_forms_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Emercury for WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.25 ▲1.02 | 2.11 ▼1.69 | 41.93 ▼6.06 |
Dashboard /wp-admin | 2,220 ▲40 | 5.59 ▲0.03 | 95.75 ▲5.78 | 76.86 ▲34.48 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.99 ▼0.04 | 33.85 ▼2.60 | 35.46 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.56 ▲0.36 | 654.85 ▼17.74 | 157.11 ▲105.74 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.22 ▼0.03 | 102.59 ▼9.63 | 77.82 ▲31.80 |
Forms /wp-admin/emercury-forms.php | 26 | 0.42 | 0.12 | 14.59 |
Advanced Options /wp-admin/emercury-forms.php?page=emercury_forms_advanced_options | 26 | 0.42 | 0.08 | 9.22 |
Settings /wp-admin/emercury-forms.php?page=emercury_forms_settings | 26 | 0.42 | 0.09 | 8.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_emercury_forms_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/emercury-for-wp/php/emercury_wp_admin_header.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emercury-for-wp/includes/functions.php:3
- > PHP Fatal error
Uncaught Error: Class 'Emercury_API' not found in wp-content/plugins/emercury-for-wp/php/emercury_forms_admin_advanced_options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/emercury-for-wp/php/emercury_forms_admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/emercury-for-wp/php/emercury_forms_admin_settings.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/emercury-for-wp/includes/emercury_forms_widget.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/emercury-forms.php
- > Network (severe)
wp-admin/emercury-forms.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/emercury-forms.php?page=emercury_forms_advanced_options
- > Network (severe)
wp-admin/emercury-forms.php?page=emercury_forms_advanced_options - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/emercury-forms.php?page=emercury_forms_settings
- > Network (severe)
wp-admin/emercury-forms.php?page=emercury_forms_settings - Failed to load resource: the server responded with a status of 404 (Not 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: emercury, email, forms, newsletter, marketing...
emercury-for-wp/emercury-forms.php 92% from 13 tests
The main file in "Emercury for WP" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("emercury-for-wp.php" instead of "emercury-forms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin827 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 230 | 76 | 758 |
JavaScript | 1 | 10 | 0 | 69 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 15.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 18 | 52.94% |
▷ Public methods | 25 | 73.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 26.47% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.69KB | 0.81KB | 0.00% |