Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/newsletter-popup/mk_newsletter.php+234
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.09ms] Passed 4 tests
An overview of server-side resources used by Newsletter Popup
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.62 ▲1.51 |
Dashboard /wp-admin | 3.35 ▲0.04 | 48.26 ▼0.80 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.49 ▲5.57 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 95.55 ▼2.14 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 30.90 ▲1.09 |
Add New /wp-admin/admin.php?page=wp_newsletter_add_new | 3.58 | 29.54 |
Buy PRO /wp-admin/admin.php?page=wp_newsletter_buy_pro | 3.28 | 28.43 |
Settings /wp-admin/admin.php?page=wp_newsletter_edit_settings | 3.28 | 29.18 |
Overview /wp-admin/admin.php?page=wp_newsletter_overview | 3.27 | 25.44 |
Manage Newsletters /wp-admin/admin.php?page=wp_newsletter_show_items | 3.32 | 27.33 |
Local Record /wp-admin/admin.php?page=wp_newsletter_show_localrecord | 3.30 | 30.19 |
Add New /wp-admin/admin.php?page=wp_newsletter_type | 3.30 | 43.61 |
Edit Newsletter /wp-admin/admin.php?page=wp_newsletter_edit_item | 3.56 | 41.86 |
Server storage [IO: ▲1.70MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 95 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_mk_newsletter_data |
wp_mk_newsletter_local_records |
New WordPress options |
---|
can_compress_scripts |
mk_newsletter_settings |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Newsletter Popup: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲75 | 13.29 ▼1.01 | 1.64 ▼0.90 | 55.35 ▲11.32 |
Dashboard /wp-admin | 2,237 ▲49 | 4.87 ▼0.94 | 110.64 ▼8.92 | 84.13 ▲37.89 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.03 ▲0.02 | 43.77 ▲1.83 | 41.24 ▲8.40 |
Add New Post /wp-admin/post-new.php | 1,435 ▼100 | 18.18 ▼4.98 | 694.98 ▲58.57 | 58.50 ▼5.94 |
Media Library /wp-admin/upload.php | 1,434 ▲43 | 4.25 ▲0.05 | 103.59 ▲3.48 | 77.09 ▲31.85 |
Add New /wp-admin/admin.php?page=wp_newsletter_add_new | 2,896 | 4.73 | 101.23 | 74.60 |
Buy PRO /wp-admin/admin.php?page=wp_newsletter_buy_pro | 959 | 2.08 | 28.79 | 33.39 |
Settings /wp-admin/admin.php?page=wp_newsletter_edit_settings | 932 | 1.72 | 26.32 | 33.25 |
Overview /wp-admin/admin.php?page=wp_newsletter_overview | 886 | 2.08 | 26.94 | 32.10 |
Manage Newsletters /wp-admin/admin.php?page=wp_newsletter_show_items | 991 | 1.72 | 28.89 | 32.09 |
Local Record /wp-admin/admin.php?page=wp_newsletter_show_localrecord | 888 | 2.15 | 34.21 | 29.57 |
Add New /wp-admin/admin.php?page=wp_newsletter_type | 1,653 | 2.37 | 36.87 | 49.08 |
Edit Newsletter /wp-admin/admin.php?page=wp_newsletter_edit_item | 3,577 | 4.75 | 127.58 | 84.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_mk_newsletter_data
- wp_mk_newsletter_local_records
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- mk_newsletter_settings
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 112 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_newsletter_edit_item
- > Notice in wp-content/plugins/newsletter-popup/app/inc/addnew.php+911
Undefined index: type
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_newsletter_edit_item
- > Notice in wp-content/plugins/newsletter-popup/app/inc/addnew.php+664
Undefined variable: arrow_position
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_newsletter_edit_item
- > Notice in wp-content/plugins/newsletter-popup/app/inc/addnew.php+696
Undefined variable: wp_newsletter_upper_part_color
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp_newsletter_edit_item
- > Notice in wp-content/plugins/newsletter-popup/app/inc/addnew.php+697
Undefined variable: wp_newsletter_bottom_part_color
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/newsletter-popup/app/inc/front/newsletter_footer_lightbox.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/newsletter-popup/mk_newsletter.php:13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/newsletter-popup/app/inc/editsettings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/newsletter-popup/app/inc/newsletter_type1.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/newsletter-popup/app/inc/newsletter_type.php:122
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
newsletter-popup/mk_newsletter.php 92% from 13 tests
"Newsletter Popup" version 1.2'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: Name the main plugin file the same as the plugin slug ("newsletter-popup.php" instead of "mk_newsletter.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin16,136 lines of code in 54 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 856 | 504 | 15,553 |
JavaScript | 8 | 15 | 28 | 356 |
CSS | 4 | 7 | 5 | 227 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 47.83 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 94.94% |
▷ Protected methods | 3 | 3.80% |
▷ Private methods | 1 | 1.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/inc/images/tick.png | 17.71KB | 0.36KB | ▼ 97.98% |
app/inc/front/images/borderbg.png | 19.07KB | 5.65KB | ▼ 70.39% |
app/inc/front/images/mobile.png | 23.79KB | 25.56KB | 0.00% |
app/inc/front/images/icon-1.png | 2.85KB | 1.91KB | ▼ 32.93% |
app/inc/front/images/bluebg.png | 2.25KB | 0.35KB | ▼ 84.43% |