Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.17MB] [CPU: ▼43.98ms] Passed 4 tests
Analyzing server-side resources used by EmailSystem
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▼0.65 | 13.62 ▼25.65 |
Dashboard /wp-admin | 2.85 ▼0.49 | 16.80 ▼44.51 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 16.82 ▼24.28 |
Add New Post /wp-admin/post-new.php | 2.85 ▼3.03 | 18.81 ▼81.48 |
Media Library /wp-admin/upload.php | 2.85 ▼0.37 | 14.76 ▼17.22 |
Settings /wp-admin/edit.php?post_type=emailsystemform&page=em_settings | 3.27 | 29.11 |
EmailSystem /wp-admin/edit.php?post_type=emailsystemform | 2.86 | 22.22 |
Add Form /wp-admin/post-new.php?post_type=emailsystemform | 2.86 | 18.51 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for EmailSystem
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲122 | 13.18 ▼1.37 | 1.73 ▲0.02 | 44.11 ▲0.79 |
Dashboard /wp-admin | 2,274 ▲89 | 4.96 ▼0.93 | 96.18 ▼26.08 | 75.90 ▲31.91 |
Posts /wp-admin/edit.php | 2,154 ▲65 | 2.01 ▼0.04 | 33.71 ▼9.78 | 29.72 ▼7.12 |
Add New Post /wp-admin/post-new.php | 1,578 ▲59 | 23.03 ▼0.22 | 647.16 ▼14.19 | 58.64 ▲6.10 |
Media Library /wp-admin/upload.php | 1,453 ▲65 | 4.21 ▲0.01 | 97.91 ▼6.80 | 75.36 ▲33.15 |
Settings /wp-admin/edit.php?post_type=emailsystemform&page=em_settings | 911 | 2.15 | 37.23 | 25.52 |
EmailSystem /wp-admin/edit.php?post_type=emailsystemform | 914 | 2.18 | 40.99 | 27.06 |
Add Form /wp-admin/post-new.php?post_type=emailsystemform | 911 | 2.12 | 26.81 | 25.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/emailsystem/emailsystem.php+381
Undefined index: post_type
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emailsystemform
- > Notice in wp-content/plugins/emailsystem/emailsystem.php+385
Undefined index: page
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/emailsystem/emailsystem.php:18
- > 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emailsystemform
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28609 "jQuery.Deferred exception: em_php_vars is not defined" "ReferenceError: em_php_vars is not defined\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/emailsystem/assets/js/emailsystem.js?ver=6.3.1:212:108)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=emailsystemform
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,wp-polyfill-inert,regenerator-runtime,wp-polyfill,wp-hooks&ver=6.3.1 1:28721 Uncaught ReferenceError: em_php_vars is not defined
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: form, webform, newsletter, emailsystem, subscribe
emailsystem/emailsystem.php 92% from 13 tests
The main file in "EmailSystem" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 141 characters long)
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
No dangerous file extensions were detected1,334 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 5 | 13 | 877 |
JavaScript | 1 | 0 | 0 | 360 |
PO File | 1 | 41 | 0 | 94 |
CSS | 2 | 0 | 0 | 2 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
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 | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
6 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/email-field.png | 7.77KB | 5.62KB | ▼ 27.67% |
assets/images/emailsystem_white_transparent.png | 4.62KB | 2.56KB | ▼ 44.67% |
assets/images/button-field.png | 16.71KB | 10.60KB | ▼ 36.55% |
assets/images/text-field.png | 2.88KB | 1.01KB | ▼ 65.06% |
assets/images/delete-form-field.png | 27.59KB | 9.94KB | ▼ 63.97% |