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.13MB] [CPU: ▲3.76ms] Passed 4 tests
Server-side resources used by WP Universal Newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 43.05 ▼0.46 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.00 ▲2.66 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 55.59 ▲5.72 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 105.95 ▲13.19 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 42.83 ▲7.12 |
All Newsletters /wp-admin/edit.php?post_type=wpun_newsletter | 3.39 | 43.49 |
WP Universal Newsletter /wp-admin/options-general.php?page=newsletter | 3.41 | 54.92 |
Add Newsletter /wp-admin/post-new.php?post_type=wpun_newsletter | 3.48 | 52.86 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
WP Universal Newsletter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲166 | 13.51 ▼1.02 | 8.94 ▲6.87 | 39.59 ▼4.84 |
Dashboard /wp-admin | 2,247 ▲70 | 5.81 ▲0.14 | 96.91 ▼5.16 | 43.01 ▼0.21 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.30 ▲0.28 | 41.74 ▲3.94 | 36.01 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,574 ▲46 | 23.19 ▲0.05 | 667.25 ▼58.11 | 34.88 ▼27.78 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.35 ▲0.24 | 95.41 ▼31.92 | 44.45 ▼3.40 |
All Newsletters /wp-admin/edit.php?post_type=wpun_newsletter | 1,106 | 2.23 | 35.94 | 32.09 |
WP Universal Newsletter /wp-admin/options-general.php?page=newsletter | 2,381 | 4.79 | 94.58 | 54.11 |
Add Newsletter /wp-admin/post-new.php?post_type=wpun_newsletter | 2,402 | 8.03 | 172.68 | 71.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, 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 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-universal-newsletter/public/partials/plugin-wp-newsletter-display.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function flush_rules() on null in wp-content/plugins/wp-universal-newsletter/admin/partials/wp-newsletter-admin-display.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-universal-newsletter/templates/wpun_single.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-universal-newsletter/templates/wpun_archive-loop.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-universal-newsletter/templates/wpun_archive.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=newsletter
- > Network (severe)
wp-content/themes/twentytwentyone/images/logo.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: mailchimp, newsletter, seo, outlook, html email...
wp-universal-newsletter/wp-universal-newsletter.php 92% from 13 tests
Analyzing the main PHP file in "WP Universal Newsletter" version 1.1.1
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 159 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,125 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 274 | 755 | 1,063 |
JavaScript | 3 | 8 | 62 | 35 |
CSS | 2 | 2 | 9 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 2 | 7.41% |
▷ Public methods | 22 | 81.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 18.52% |
Functions | 23 | |
▷ Named functions | 23 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected