Benchmarks
Plugin footprint 65% 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.65MB] [CPU: ▲4.00ms] Passed 4 tests
Server-side resources used by EELV Newsletter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 50.07 ▲7.15 |
Dashboard /wp-admin | 3.98 ▲0.67 | 54.65 ▼0.63 |
Posts /wp-admin/edit.php | 4.03 ▲0.67 | 55.10 ▲5.05 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 103.41 ▲9.19 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 42.95 ▲4.43 |
Reload parameters /wp-admin/edit.php?post_type=newsletter&page=checkdb | 3.90 | 59.96 |
Configuration/help /wp-admin/edit.php?post_type=newsletter&page=settings_page | 3.82 | 45.77 |
Archives /wp-admin/edit.php?post_type=newsletter_archive | 3.89 | 38.90 |
Send /wp-admin/edit.php?post_type=newsletter&page=news_envoi | 3.84 | 39.25 |
add /wp-admin/post-new.php?post_type=newsletter | 6.51 | 83.25 |
Skins /wp-admin/edit.php?post_type=newsletter_template | 4.01 | 53.84 |
Newsletter /wp-admin/edit.php?post_type=newsletter | 3.94 | 46.69 |
News types /wp-admin/edit-tags.php?taxonomy=newsletter_archives_types&post_type=newsletter | 3.84 | 36.76 |
Address book /wp-admin/edit.php?post_type=newsletter&page=news_carnet_adresse | 3.85 | 44.26 |
Server storage [IO: ▲0.81MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 67 new files
Database: 1 new table, 11 new options
New tables |
---|
eelv_0_newsletter_adr |
New WordPress options |
---|
eelv_newsletter_version |
newsletter_last_burst |
widget_recent-comments |
widget_eelv_nl_archives_widget |
newsletter_options_version |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
EELV Newsletter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲168 | 13.59 ▼0.70 | 9.11 ▲7.03 | 43.22 ▼0.50 |
Dashboard /wp-admin | 2,268 ▲91 | 5.58 ▲0.01 | 83.02 ▼17.30 | 40.33 ▼3.75 |
Posts /wp-admin/edit.php | 2,176 ▲76 | 2.02 ▼0.01 | 37.22 ▲1.32 | 33.00 ▼8.81 |
Add New Post /wp-admin/post-new.php | 6,381 ▲4,855 | 24.55 ▲1.44 | 866.48 ▲203.46 | 36.05 ▼14.69 |
Media Library /wp-admin/upload.php | 1,473 ▲73 | 4.23 ▲0.13 | 101.80 ▼15.00 | 45.30 ▼4.33 |
Reload parameters /wp-admin/edit.php?post_type=newsletter&page=checkdb | 875 | 2.04 | 28.89 | 27.27 |
Configuration/help /wp-admin/edit.php?post_type=newsletter&page=settings_page | 1,348 | 1.86 | 25.24 | 36.13 |
Archives /wp-admin/edit.php?post_type=newsletter_archive | 1,178 | 1.96 | 35.33 | 30.76 |
Send /wp-admin/edit.php?post_type=newsletter&page=news_envoi | 852 | 2.05 | 26.51 | 24.25 |
add /wp-admin/post-new.php?post_type=newsletter | 6,411 | 26.30 | 933.73 | 35.07 |
Skins /wp-admin/edit.php?post_type=newsletter_template | 1,778 | 2.02 | 39.54 | 31.69 |
Newsletter /wp-admin/edit.php?post_type=newsletter | 1,153 | 1.96 | 32.30 | 29.19 |
News types /wp-admin/edit-tags.php?taxonomy=newsletter_archives_types&post_type=newsletter | 1,339 | 2.15 | 27.77 | 29.99 |
Address book /wp-admin/edit.php?post_type=newsletter&page=news_carnet_adresse | 999 | 2.05 | 22.89 | 25.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
- Zombie tables were found after uninstall: 1 table
- eelv_0_newsletter_adr
- This plugin does not fully uninstall, leaving 11 options in the database
- newsletter_options_version
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- newsletter_last_burst
- widget_theysaidso_widget
- eelv_newsletter_version
- widget_recent-posts
- widget_eelv_nl_subscribe_widget
- ...
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=newsletter&page=settings_page
- > Notice in wp-content/plugins/eelv-newsletter/lettreinfo.php+2218
Trying to access array offset on value of type bool
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=newsletter
- > Notice in wp-content/plugins/eelv-newsletter/views/admin/editor-send.php+39
Undefined variable: item_id
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eelv-newsletter/reading/read.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/eelv-newsletter/csv.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/eelv-newsletter/views/addressbook/contact-import.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/eelv-newsletter/views/archive/archive-queue-list.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/eelv-newsletter/inc/cpt/newsletter_template.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/eelv-newsletter/views/archive/archive-preview.php:3
- > PHP Notice
Undefined variable: con_id in wp-content/plugins/eelv-newsletter/views/addressbook/contact-edit.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eelv-newsletter/views/admin/editor-send.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/eelv-newsletter/views/admin/editor.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/eelv-newsletter/views/admin/admin-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/eelv-newsletter/views/addressbook/contact-edit.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=newsletter
- > Javascript (severe) in unknown
/wp-content/plugins/eelv-newsletter/js/blocks/autocomplete.js?ver=1576742362 0:655 Uncaught TypeError: Cannot read properties of undefined (reading 'Autocomplete')
- > GET request to /wp-admin/post-new.php?post_type=newsletter
- > Javascript (severe) in unknown
/wp-content/plugins/eelv-newsletter/js/blocks/post.js?ver=1576742362 0:937 Uncaught TypeError: Cannot read properties of undefined (reading 'URLInputButton')
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: newsletter, mailing, contacts, tracking, email...
eelv-newsletter/lettreinfo.php 92% from 13 tests
The main PHP file in "EELV Newsletter" ver. 4.8.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("eelv-newsletter.php" instead of "lettreinfo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin11,652 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 6,311 |
PHP | 36 | 276 | 460 | 3,624 |
PO File | 1 | 338 | 394 | 696 |
JavaScript | 12 | 69 | 71 | 654 |
CSS | 7 | 20 | 10 | 337 |
Sass | 3 | 2 | 0 | 30 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 114.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 325.00 |
Average method complexity | 5.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 81 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/newsletter.png | 30.63KB | 13.81KB | ▼ 54.90% |