Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼0.05ms] Passed 4 tests
Server-side resources used by Enormail Sign Up Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.59 ▲1.94 |
Dashboard /wp-admin | 3.59 ▲0.29 | 52.23 ▼0.22 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 49.01 ▼1.53 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 98.80 ▲6.54 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 34.77 ▼0.38 |
Settings /wp-admin/admin.php?page=enormail-api-key | 3.42 | 33.58 |
Forms /wp-admin/admin.php?page=enormail-admin | 3.49 | 312.79 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_enormail_forms |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_enormail-widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Enormail Sign Up Forms
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.31 ▼1.06 | 1.58 ▼0.30 | 42.46 ▼4.84 |
Dashboard /wp-admin | 2,246 ▲58 | 5.89 ▲1.01 | 99.40 ▼17.89 | 37.45 ▼2.06 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.06 ▲0.05 | 37.01 ▼1.90 | 35.59 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.08 ▼0.11 | 656.81 ▼10.85 | 52.48 ▼2.21 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.27 ▲0.12 | 99.40 ▼0.49 | 39.95 ▼5.67 |
Settings /wp-admin/admin.php?page=enormail-api-key | 843 | 1.72 | 27.26 | 27.62 |
Forms /wp-admin/admin.php?page=enormail-admin | 869 | 2.07 | 23.78 | 32.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_enormail_forms
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_enormail-widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 fix the following
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/enormail-sign-up-forms/admin/partials/enormail-admin-header.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/enormail-sign-up-forms/includes/class-enormail-forms-list.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/enormail-sign-up-forms/includes/class-enormail-forms-list.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/enormail-sign-up-forms/includes/class-enormail-widget.php:30
- > PHP Fatal error
Uncaught Error: Class 'EM_Base' not found in wp-content/plugins/enormail-sign-up-forms/includes/emapi/account.php:9
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/enormail-sign-up-forms/includes/class-enormail-forms-list.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/enormail-sign-up-forms/admin/partials/enormail-admin-header.php:3
- > PHP Fatal error
Uncaught Error: Class 'EM_Base' not found in wp-content/plugins/enormail-sign-up-forms/includes/emapi/lists.php:9
- > PHP Fatal error
Uncaught Error: Class 'EM_Base' not found in wp-content/plugins/enormail-sign-up-forms/includes/emapi/mailings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/enormail-sign-up-forms/admin/partials/enormail-admin-header.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: webform, newsletter, subscribe, form, email...
enormail-sign-up-forms/enormail.php 85% from 13 tests
The main PHP file in "Enormail Sign Up Forms" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("enormail-sign-up-forms.php" instead of "enormail.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, 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
Success! There were no dangerous files found in this plugin1,434 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 480 | 975 | 1,192 |
PO File | 1 | 49 | 76 | 113 |
CSS | 1 | 20 | 3 | 83 |
JavaScript | 2 | 4 | 0 | 46 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 104 | |
▷ Static methods | 11 | 10.58% |
▷ Public methods | 90 | 86.54% |
▷ Protected methods | 1 | 0.96% |
▷ Private methods | 13 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/enormail-shortcode-icon.png | 14.95KB | 0.52KB | ▼ 96.50% |
admin/img/enormail-email-marketing-icon.png | 0.79KB | 1.01KB | 0.00% |