Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.91ms] Passed 4 tests
An overview of server-side resources used by Ultimate Subscribe
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.26 ▼2.77 |
Dashboard /wp-admin | 3.36 ▲0.06 | 50.29 ▼3.39 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 52.78 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 93.02 ▼0.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.14 ▼0.95 |
Dashboard /wp-admin/admin.php?page=ultimate-subscribe | 3.28 | 45.31 |
Subscribers /wp-admin/admin.php?page=ultimate-subscribe-users | 3.30 | 39.48 |
Forms /wp-admin/edit.php?post_type=u_subscribe_forms | 3.37 | 38.68 |
Settings /wp-admin/admin.php?page=ultimate-subscribe-settings | 3.35 | 35.00 |
Server storage [IO: ▲1.77MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 54 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_ultimate_subscribe_lists |
wp_ultimate_subscribe |
New WordPress options |
---|
widget_recent-posts |
widget_ultimate_subscribe_form_widget |
db_upgraded |
widget_recent-comments |
ultimate_subscribe_options |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Ultimate Subscribe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲194 | 13.96 ▼0.66 | 8.66 ▲6.33 | 38.10 ▼6.42 |
Dashboard /wp-admin | 2,250 ▲62 | 5.21 ▼0.65 | 102.51 ▼15.06 | 39.56 ▼4.28 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.55 ▲0.53 | 42.78 ▲2.53 | 35.11 ▼2.60 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.12 ▼0.22 | 683.58 ▼39.40 | 53.62 ▼0.52 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.54 ▲0.29 | 109.18 ▼1.87 | 46.97 ▲0.57 |
Dashboard /wp-admin/admin.php?page=ultimate-subscribe | 864 | 2.00 | 37.36 | 43.20 |
Subscribers /wp-admin/admin.php?page=ultimate-subscribe-users | 953 | 2.07 | 29.35 | 26.98 |
Forms /wp-admin/edit.php?post_type=u_subscribe_forms | 1,636 | 2.31 | 38.79 | 28.78 |
Settings /wp-admin/admin.php?page=ultimate-subscribe-settings | 1,616 | 2.03 | 27.12 | 32.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_ultimate_subscribe_lists
- wp_ultimate_subscribe
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_ultimate_subscribe_form_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ultimate-subscribe/forms/form-1.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/ultimate-subscribe/admin/manu-pages/dashboard.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-subscribe/admin/settings/settings-init.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-subscribe/admin/settings/sections/form-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-subscribe/admin/settings/sections/mail-options.php:2
- > PHP Warning
require_once(ULTIMATE_SUBSCRIBE_DIRinc/api/MailChimp/MailChimp.php): failed to open stream: No such file or directory in wp-content/plugins/ultimate-subscribe/inc/register-subscriber.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-subscribe/admin/settings/sections/social-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ultimate-subscribe/admin/settings/sections/popup-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/ultimate-subscribe/admin/manu-pages/subscribers.php:14
- > PHP Warning
Use of undefined constant ULTIMATE_SUBSCRIBE_DIR - assumed 'ULTIMATE_SUBSCRIBE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/ultimate-subscribe/inc/register-subscriber.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ultimate-subscribe/admin/inc/subscribe-form-widget.php:5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
ultimate-subscribe/plugin.php 92% from 13 tests
"Ultimate Subscribe" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ultimate-subscribe.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected13,312 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 715 | 91 | 6,041 |
PHP | 25 | 508 | 1,170 | 2,783 |
SVG | 1 | 0 | 0 | 2,671 |
JavaScript | 6 | 330 | 435 | 1,817 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 12 | 11.21% |
▷ Public methods | 78 | 72.90% |
▷ Protected methods | 21 | 19.63% |
▷ Private methods | 8 | 7.48% |
Functions | 36 | |
▷ Named functions | 36 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/form-template-2.png | 27.27KB | 8.70KB | ▼ 68.10% |
admin/assets/images/form-template-1.png | 27.64KB | 9.02KB | ▼ 67.36% |