Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.56ms] Passed 4 tests
Server-side resources used by Custom Newsletter Template
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 40.48 ▼3.55 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.67 ▼4.43 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 42.61 ▲0.01 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 78.77 ▼18.26 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.08 ▲2.74 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 28 new options
New WordPress options |
---|
cnt-ads2-img |
cnt-sidebar-post-count |
widget_recent-posts |
cnt-font-color |
can_compress_scripts |
cnt-ads2-link |
cnt-favicon |
cnt-template-page-id |
widget_theysaidso_widget |
db_upgraded |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Newsletter Template
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲46 | 14.74 ▲0.44 | 1.90 ▼0.27 | 43.95 ▼0.83 |
Dashboard /wp-admin | 2,208 ▲20 | 5.93 ▲1.01 | 116.17 ▲14.61 | 77.24 ▲35.56 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.02 ▼0.02 | 34.56 ▼6.64 | 32.13 ▼3.05 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.13 ▲0.07 | 798.95 ▲216.62 | 59.45 ▲8.49 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.22 ▼0.01 | 98.58 ▲5.48 | 75.45 ▲35.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 27 options
- cnt-link-color
- cnt-background-repeat
- cnt-footer-content
- cnt-background-color
- theysaidso_admin_options
- cnt-favicon
- widget_recent-comments
- cnt-font-color
- cnt-todays-featured-title
- cnt-social-link
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-newsletter-template/custom-page-template.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-newsletter-template/custom-newsletter-template.php:50
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Layout for custom newsletter template in admin panel), #2 (Look and feel for sample domain 1), #3 (Look and feel for sample domain 2), #4 (Look and feel for sample domain 3)
- Donate link: Please fix this invalid url: ""
custom-newsletter-template/custom-newsletter-template.php Passed 13 tests
This is the main PHP file of "Custom Newsletter Template" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Custom Template Generator for Newsletter
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected890 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 98 | 38 | 500 |
CSS | 2 | 43 | 44 | 390 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 9 | |
▷ Named functions | 9 | 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 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.84MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 258.25KB | 83.08KB | ▼ 67.83% |
screenshot-1.png | 119.90KB | 43.79KB | ▼ 63.48% |
images/nl.png | 0.87KB | 0.89KB | 0.00% |
images/bg.png | 13.01KB | 8.71KB | ▼ 33.01% |
screenshot-4.png | 228.14KB | 67.28KB | ▼ 70.51% |