Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▲2.33ms] Passed 4 tests
An overview of server-side resources used by Subscriber Addons for The Events Calendar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.99 ▲0.53 | 39.28 ▲6.58 |
Dashboard /wp-admin | 3.84 ▲0.54 | 51.04 ▲5.71 |
Posts /wp-admin/edit.php | 3.90 ▲0.54 | 48.92 ▲0.57 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.51 | 95.37 ▼1.61 |
Media Library /wp-admin/upload.php | 3.77 ▲0.54 | 37.17 ▲4.63 |
Event Subscription /wp-admin/edit.php?post_type=tribe_events&page=tecsb_menu | 3.44 | 26.48 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 3.94 | 36.01 |
All Subscribers /wp-admin/edit.php?post_type=tecsb-subscriber | 3.81 | 38.87 |
Server storage [IO: ▲6.58MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 227 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_accounts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
fs_debug_mode |
fs_gdpr |
widget_recent-comments |
can_compress_scripts |
tecsb_subscription_page_id |
fs_active_plugins |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Subscriber Addons for The Events Calendar
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲183 | 13.68 ▼0.62 | 8.67 ▲6.88 | 27.55 ▼16.98 |
Dashboard /wp-admin | 2,239 ▲50 | 4.83 ▼0.14 | 110.46 ▼4.23 | 46.22 ▲7.36 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.05 ▲0.03 | 40.23 ▼0.36 | 39.58 ▲5.34 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,680 | 18.91 ▼4.54 | 813.13 ▲167.83 | 57.35 ▲5.41 |
Media Library /wp-admin/upload.php | 1,421 ▲30 | 4.27 ▲0.03 | 104.03 ▲3.94 | 44.11 ▲0.04 |
Event Subscription /wp-admin/edit.php?post_type=tribe_events&page=tecsb_menu | 28 | 0.44 | 0.08 | 3.78 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,068 | 2.10 | 31.24 | 28.34 |
All Subscribers /wp-admin/edit.php?post_type=tecsb-subscriber | 1,147 | 1.97 | 32.77 | 33.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/tec-subscriber-addons/uninstall.php+13
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 11 options
- db_upgraded
- fs_accounts
- can_compress_scripts
- widget_theysaidso_widget
- fs_debug_mode
- fs_active_plugins
- tecsb_subscription_page_id
- widget_recent-comments
- fs_gdpr
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/tec-subscriber-addons/includes/templates/tecsb-email-style.php
- 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tec-subscriber-addons/includes/templates/tecsb-email-verification.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/tec-subscriber-addons/includes/admin/admin-settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tec-subscriber-addons/includes/admin/class-tecsb-admin-ajax.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tec-subscriber-addons/includes/templates/tecsb-email-unsubscribed.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tec-subscriber-addons/includes/admin/admin-general.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/tec-subscriber-addons/includes/templates/tecsb-email-notification.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/tec-subscriber-addons/includes/admin/admin-form.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tec-subscriber-addons/includes/admin/class-tecsb-event-metabox.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tec-subscriber-addons/includes/class-tecsb-ajax.php:20
- > PHP Fatal error
Uncaught Error: Call to a member function tecsb_get_email_content() on null in wp-content/plugins/tec-subscriber-addons/includes/templates/tecsb-email-header.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=tribe_events&page=tecsb_menu
- > Network (severe)
wp-admin/edit.php?post_type=tribe_events&page=tecsb_menu - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Requires php: Version format is invalid
tec-subscriber-addons/class-mwt-tec-subscriber-cc.php 85% from 13 tests
The main PHP file in "Subscriber Addons for The Events Calendar" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("tec-subscriber-addons.php" instead of "class-mwt-tec-subscriber-cc.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis 97% from 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 plugin46,932 lines of code in 160 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 131 | 7,321 | 16,601 | 33,174 |
SVG | 4 | 7 | 12 | 8,789 |
CSS | 16 | 1,445 | 147 | 4,188 |
JavaScript | 6 | 37 | 77 | 482 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 2 | 0 | 0 | 85 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 78.36 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 55 | |
▷ Abstract classes | 2 | 3.64% |
▷ Concrete classes | 53 | 96.36% |
▷ Final classes | 0 | 0.00% |
Methods | 1,208 | |
▷ Static methods | 173 | 14.32% |
▷ Public methods | 868 | 71.85% |
▷ Protected methods | 15 | 1.24% |
▷ Private methods | 325 | 26.90% |
Functions | 94 | |
▷ Named functions | 94 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 123 | |
▷ Global constants | 98 | 79.67% |
▷ Class constants | 25 | 20.33% |
▷ Public constants | 25 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.68MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 42.89KB | 19.77KB | ▼ 53.92% |
assets/screenshot-4.png | 69.41KB | 27.04KB | ▼ 61.04% |
assets/screenshot-1.png | 52.71KB | 24.88KB | ▼ 52.81% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/screenshot-3.png | 455.46KB | 100.53KB | ▼ 77.93% |