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.06MB] [CPU: ▼6.19ms] Passed 4 tests
A check of server-side resources used by Newsletter HTML Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.17 ▲3.60 |
Dashboard /wp-admin | 3.37 ▲0.06 | 52.47 ▲1.14 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.74 ▼11.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 87.30 ▼14.54 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.14 ▲0.53 |
Email Templates /wp-admin/edit.php?post_type=email-templates | 3.38 | 40.90 |
Add New /wp-admin/post-new.php?post_type=email-templates | 3.35 | 47.47 |
Server storage [IO: ▲0.32MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Newsletter HTML Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.24 ▼0.11 | 1.91 ▲0.13 | 38.57 ▼4.47 |
Dashboard /wp-admin | 2,225 ▲45 | 5.61 ▼0.05 | 85.00 ▼12.34 | 36.46 ▼6.48 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.02 ▼0.01 | 34.03 ▼4.07 | 35.04 ▲0.13 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,713 | 26.25 ▲3.10 | 881.59 ▲184.04 | 55.78 ▼6.10 |
Media Library /wp-admin/upload.php | 1,430 ▲33 | 4.22 ▲0.08 | 97.43 ▼3.76 | 43.61 ▼0.85 |
Email Templates /wp-admin/edit.php?post_type=email-templates | 1,621 | 2.01 | 33.43 | 34.20 |
Add New /wp-admin/post-new.php?post_type=email-templates | 2,068 | 3.98 | 75.73 | 49.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/newsletter-html-generator/newsletter-html-generator.php+340
count(): Parameter must be an array or an object that implements Countable
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- 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
The smoke test was a success, however most plugin functionality was not tested
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-html-generator/newsletter-html-generator.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example of the email template creating.), #2 (Example of generating newsletter HTML from blog post.)
newsletter-html-generator/newsletter-html-generator.php 92% from 13 tests
Analyzing the main PHP file in "Newsletter HTML Generator" version 1.1.7
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 339 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin261 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 79 | 261 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
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 | 8 | |
▷ Named functions | 8 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.30MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 205.05KB | 57.17KB | ▼ 72.12% |
screenshot-2.png | 99.56KB | 97.61KB | ▼ 1.96% |