Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.11ms] Passed 4 tests
Server-side resources used by N-letters. Send newsletters to your website's users
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.33 ▼3.88 |
Dashboard /wp-admin | 3.35 ▲0.04 | 63.52 ▲15.38 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 48.38 ▲2.37 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 92.50 ▼2.76 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.23 ▼0.15 |
Newsletter /wp-admin/edit.php?post_type=mxsms_subscriptions | 3.32 | 37.38 |
Create letter /wp-admin/post-new.php?post_type=mxsms_subscriptions | 3.38 | 49.59 |
Subsc. Settings /wp-admin/options-general.php?page=mxsms_subsc_settings | 3.28 | 31.45 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for N-letters. Send newsletters to your website's users
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲178 | 13.99 ▼0.38 | 9.01 ▲7.08 | 40.02 ▼2.68 |
Dashboard /wp-admin | 2,243 ▲52 | 5.88 ▼0.05 | 96.34 ▼4.86 | 37.08 ▼5.44 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▼0.03 | 40.50 ▲3.49 | 40.69 ▲7.60 |
Add New Post /wp-admin/post-new.php | 1,546 ▲24 | 23.20 ▼0.12 | 596.64 ▼36.91 | 50.28 ▼7.57 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.23 ▲0.05 | 99.33 ▲1.88 | 42.36 ▲1.47 |
Newsletter /wp-admin/edit.php?post_type=mxsms_subscriptions | 1,090 | 1.99 | 33.21 | 27.40 |
Create letter /wp-admin/post-new.php?post_type=mxsms_subscriptions | 2,255 | 7.57 | 176.73 | 64.20 |
Subsc. Settings /wp-admin/options-general.php?page=mxsms_subsc_settings | 860 | 2.31 | 23.07 | 27.65 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/n-letters-send-newsletters-to-your-websites-users/includes/admin/views/hidemenu-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/n-letters-send-newsletters-to-your-websites-users/includes/admin/views/sub-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/n-letters-send-newsletters-to-your-websites-users/includes/admin/views/main-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/n-letters-send-newsletters-to-your-websites-users/includes/admin/views/settings-page.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
2 plugin tags: newsletter, email
n-letters-send-newsletters-to-your-websites-users/n-letters-send-newsletters.php 92% from 13 tests
"N-letters. Send newsletters to your website's users" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("n-letters-send-newsletters-to-your-websites-users.php" instead of "n-letters-send-newsletters.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,866 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 0 | 15 | 2,227 |
PHP | 29 | 620 | 394 | 872 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 2 | 44 | 2 | 49 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 2.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 1 | 5.00% |
Methods | 64 | |
▷ Static methods | 25 | 39.06% |
▷ Public methods | 64 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 5 | 71.43% |
▷ Anonymous functions | 2 | 28.57% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-n.png | 5.81KB | 2.94KB | ▼ 49.38% |