Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.97ms] Passed 4 tests
This is a short check of server-side resources used by Newsletter2Go
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.70 ▼0.53 |
Dashboard /wp-admin | 3.40 ▲0.10 | 47.62 ▼3.75 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 45.30 ▼3.80 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 83.42 ▼6.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.10 | 38.38 ▼2.25 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 34 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_n2go_widget |
n2go_apikey |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Newsletter2Go
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 13.31 ▼1.07 | 4.73 ▲3.00 | 42.68 ▼2.22 |
Dashboard /wp-admin | 2,207 ▲15 | 5.85 ▲0.93 | 100.10 ▼26.17 | 71.73 ▲25.55 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 1.99 ▼0.02 | 34.83 ▼2.63 | 32.87 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,679 ▲146 | 22.32 ▼0.78 | 669.38 ▼8.22 | 65.82 ▲9.53 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.12 ▼0.18 | 102.02 ▲2.74 | 45.64 ▲1.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- can_compress_scripts
- widget_n2go_widget
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- n2go_apikey
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/newsletter2go/widget/widgetStyles.php
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter2go/newsletter2go.php:142
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 3
- > PHP Notice
Undefined variable: colors in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 10
- > PHP Notice
Undefined variable: type in wp-content/plugins/newsletter2go/widget/widgetView.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/newsletter2go/widget/N2Go_Widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/newsletter2go/gui/adminView.php:4
- > PHP Notice
Undefined variable: colors in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 14
- > PHP Notice
Undefined variable: colors in wp-content/plugins/newsletter2go/widget/widgetStyles.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
newsletter2go/newsletter2go.php Passed 13 tests
"Newsletter2Go" version 4.0.13's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
125 characters long description:
Adds email marketing functionality to your E-commerce platform. Easily synchronize your contacts and send product newsletters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,641 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 701 | 18 | 1,843 |
JavaScript | 5 | 102 | 165 | 1,000 |
PHP | 8 | 148 | 115 | 920 |
SVG | 1 | 0 | 0 | 685 |
PO File | 2 | 77 | 85 | 193 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 19.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 25 | |
▷ Static methods | 8 | 32.00% |
▷ Public methods | 15 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 40.00% |
Functions | 12 | |
▷ Named functions | 10 | 83.33% |
▷ Anonymous functions | 2 | 16.67% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 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
6 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gui/lib/wordpress_icon.png | 1.25KB | 0.46KB | ▼ 62.99% |
gui/lib/banner_wordpress_newsletter2go.png | 24.09KB | 10.74KB | ▼ 55.41% |
gui/lib/wheel.png | 11.32KB | 6.53KB | ▼ 42.30% |
gui/lib/mask.png | 1.95KB | 4.18KB | 0.00% |
gui/lib/marker.png | 0.43KB | 0.71KB | 0.00% |