Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲3.05ms] Passed 4 tests
A check of server-side resources used by Newsletter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 46.95 ▲5.59 |
Dashboard /wp-admin | 3.44 ▲0.14 | 53.85 ▲2.89 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 55.96 ▲3.69 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 104.15 ▲0.03 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 41.15 ▲7.29 |
Server storage [IO: ▲4.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 158 new files
Database: no new tables, 17 new options
New WordPress options |
---|
can_compress_scripts |
un_section1_options |
widget_theysaidso_widget |
un_redirect_url |
db_upgraded |
un_RatingDiv |
un_section2_options |
un_pluginVersion |
un_feed_id |
widget_subscriber_form_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Newsletter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,316 ▲555 | 16.72 ▲2.37 | 110.03 ▲108.33 | 44.37 ▼2.60 |
Dashboard /wp-admin | 2,474 ▲297 | 5.67 ▲0.02 | 86.35 ▼5.68 | 79.32 ▲39.02 |
Posts /wp-admin/edit.php | 2,403 ▲303 | 2.03 ▼0.01 | 41.14 ▲2.30 | 48.67 ▲10.56 |
Add New Post /wp-admin/post-new.php | 1,878 ▲343 | 22.40 ▲4.29 | 701.79 ▲23.14 | 61.41 ▼4.66 |
Media Library /wp-admin/upload.php | 1,679 ▲279 | 4.18 ▲0.02 | 105.68 ▼1.30 | 90.44 ▲45.39 |
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
- Zombie WordPress options were found after uninstall: 11 options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- analyst_cache
- un_sf_count
- un_installDate
- theysaidso_admin_options
- widget_subscriber_form_widget
- db_upgraded
- un_RatingDiv
- ...
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 8× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/newsletter-email-mailing-list/analyst/templates/optout.php
- > /wp-content/plugins/newsletter-email-mailing-list/analyst/templates/forms/deactivate.php
- > /wp-content/plugins/newsletter-email-mailing-list/css/jquery-ui-1.10.4/index.php
- > /wp-content/plugins/newsletter-email-mailing-list/css/images/index.php
- > /wp-content/plugins/newsletter-email-mailing-list/analyst/templates/optin.php
- > /wp-content/plugins/newsletter-email-mailing-list/images/index.php
- > /wp-content/plugins/newsletter-email-mailing-list/analyst/templates/forms/install.php
- > /wp-content/plugins/newsletter-email-mailing-list/css/jquery-ui-1.10.4/images/index.php
- 35× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/newsletter-email-mailing-list/libs/un_ajax.php:3
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\RequestorContract' not found in wp-content/plugins/newsletter-email-mailing-list/analyst/src/ApiRequestor.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/newsletter-email-mailing-list/views/un_option_view1.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function getPluginName() on null in wp-content/plugins/newsletter-email-mailing-list/analyst/templates/notice.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/newsletter-email-mailing-list/libs/un_displayIcon.php:3
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Http\\Requests\\AbstractLoggerRequest' not found in wp-content/plugins/newsletter-email-mailing-list/analyst/src/Http/Requests/UninstallRequest.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/newsletter-email-mailing-list/libs/un_install_uninstall.php:123
- > PHP Notice
Undefined variable: shieldImage in wp-content/plugins/newsletter-email-mailing-list/analyst/templates/optout.php on line 6
- > PHP Fatal error
Uncaught Error: Interface 'Analyst\\Contracts\\HttpClientContract' not found in wp-content/plugins/newsletter-email-mailing-list/analyst/src/Http/WordPressHttpClient.php:10
- > PHP Fatal error
Uncaught Error: Class 'Analyst\\Core\\AbstractFactory' not found in wp-content/plugins/newsletter-email-mailing-list/analyst/src/Account/AccountDataFactory.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: notifications, newsletter, subscription form
newsletter-email-mailing-list/newsletter-email-mailing-list.php Passed 13 tests
"Newsletter" version 2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
Easily allow your readers to get new posts by email (automatically).
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
Good job! No executable or dangerous file extensions detected19,665 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 5 | 4 | 0 | 13,850 |
PHP | 53 | 714 | 1,385 | 3,479 |
HTML | 2 | 242 | 0 | 961 |
CSS | 4 | 42 | 9 | 871 |
JavaScript | 4 | 71 | 30 | 504 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 2.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 2 | 8.70% |
▷ Concrete classes | 21 | 91.30% |
▷ Final classes | 0 | 0.00% |
Methods | 179 | |
▷ Static methods | 22 | 12.29% |
▷ Public methods | 160 | 89.39% |
▷ Protected methods | 10 | 5.59% |
▷ Private methods | 9 | 5.03% |
Functions | 67 | |
▷ Named functions | 53 | 79.10% |
▷ Anonymous functions | 14 | 20.90% |
Constants | 7 | |
▷ Global constants | 4 | 57.14% |
▷ Class constants | 3 | 42.86% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
47 PNG files occupy 1.17MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/count_bg.png | 2.33KB | 1.22KB | ▼ 47.74% |
images/arrow.png | 1.82KB | 1.11KB | ▼ 39.15% |
css/images/left_log_icn.png | 2.50KB | 1.86KB | ▼ 25.51% |
images/radio_bg.png | 3.36KB | 1.76KB | ▼ 47.72% |
images/bot_arow.png | 1.50KB | 0.66KB | ▼ 56.21% |