Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲4.82MB] [CPU: ▲155.34ms] 75% from 4 tests
A check of server-side resources used by WP Group Subscriptions
The following require your attention
- RAM: Total memory usage must be kept under 10MB (currently 11.06MB on /wp-admin/admin.php?page=accounting)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.86 ▲2.39 | 66.10 ▲25.98 |
Dashboard /wp-admin | 9.76 ▲6.42 | 253.66 ▲191.67 |
Posts /wp-admin/edit.php | 9.76 ▲6.41 | 274.29 ▲221.46 |
Add New Post /wp-admin/post-new.php | 9.95 ▲4.06 | 307.57 ▲200.29 |
Media Library /wp-admin/upload.php | 9.76 ▲6.54 | 240.81 ▲203.40 |
WP Group Subs. /wp-admin/options-general.php?page=settings-wp-group-subscriptions | 9.84 | 335.82 |
All Plans /wp-admin/admin.php?page=plans | 9.88 | 292.55 |
Overview /wp-admin/admin.php?page=accounting | 11.06 | 260.08 |
New Member /wp-admin/admin.php?page=edit-member | 9.86 | 286.67 |
Payments /wp-admin/admin.php?page=payments | 9.91 | 269.78 |
New account /wp-admin/admin.php?page=edit-subscriber | 9.84 | 295.09 |
New Plan /wp-admin/admin.php?page=edit-plan | 9.91 | 280.79 |
Subs. Accounts /wp-admin/admin.php?page=subscribers | 9.90 | 296.11 |
All Members /wp-admin/admin.php?page=members | 9.89 | 273.39 |
Server storage [IO: ▲2.52MB] [DB: ▲0.04MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 252 new files
Database: 11 new tables, 8 new options
New tables |
---|
wp_wgs_subscribers |
wp_wgs_form_strings |
wp_wgs_countries |
wp_wgs_members |
wp_wgs_forms |
wp_wgs_currencies |
wp_wgs_plans |
wp_wgs_form_wrappers |
wp_wgs_form_items |
wp_wgs_form_item_links |
... |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
recovery_mode_email_last_sent |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_wgs_profile_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Group Subscriptions
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲317 | 14.12 ▲0.08 | 12.86 ▲10.96 | 43.81 ▲1.25 |
Dashboard /wp-admin | 2,346 ▲166 | 5.71 ▲0.07 | 106.04 ▲11.90 | 46.68 ▲5.73 |
Posts /wp-admin/edit.php | 2,252 ▲152 | 2.21 ▲0.19 | 54.72 ▲12.44 | 36.39 ▼0.72 |
Add New Post /wp-admin/post-new.php | 1,707 ▲181 | 18.72 ▼4.88 | 638.04 ▼70.04 | 46.36 ▼8.99 |
Media Library /wp-admin/upload.php | 1,548 ▲148 | 4.29 ▲0.12 | 109.20 ▲4.02 | 43.39 ▲2.37 |
WP Group Subs. /wp-admin/options-general.php?page=settings-wp-group-subscriptions | 1,637 | 2.34 | 42.52 | 31.59 |
All Plans /wp-admin/admin.php?page=plans | 1,011 | 2.28 | 44.55 | 30.84 |
Overview /wp-admin/admin.php?page=accounting | 954 | 1.85 | 40.44 | 27.73 |
New Member /wp-admin/admin.php?page=edit-member | 1,202 | 8.55 | 112.61 | 31.19 |
Payments /wp-admin/admin.php?page=payments | 1,045 | 2.31 | 44.57 | 25.28 |
New account /wp-admin/admin.php?page=edit-subscriber | 1,131 | 2.23 | 44.80 | 27.68 |
New Plan /wp-admin/admin.php?page=edit-plan | 821 | 1.38 | 19.80 | 23.62 |
Subs. Accounts /wp-admin/admin.php?page=subscribers | 1,043 | 2.27 | 44.27 | 28.91 |
All Members /wp-admin/admin.php?page=members | 1,038 | 2.26 | 44.27 | 29.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_wgs_profile_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=edit-plan
- > Notice in wp-content/plugins/wp-group-subscriptions/common/classes/units/Plan.php+97
Trying to access array offset on value of type bool
- > GET request to /wp-admin/admin.php?page=edit-plan
- > Error in wp-content/plugins/wp-group-subscriptions/core/helpers/php/wp-helpers-after-config.php+114
Uncaught Error: Class 'NumberFormatter' not found in wp-content/plugins/wp-group-subscriptions/core/helpers/php/wp-helpers-after-config.php:114
Stack trace:
#0 wp-content/plugins/wp-group-subscriptions/common/classes/units/Plan.php(97): H4APlugin\Core\wp_get_symbol_currency()
#1 wp-content/plugins/wp-group-subscriptions/core/admin/features/page/template/EditItemTemplate.php(94): H4APlugin\WPGroupSubs\Common\Plan->initForm()
#2 wp-content/plugins/wp-group-subscriptions/core/admin/features/page/Screen.php(78): H4APlugin\Core\Admin\EditItemTemplate->write()
#3 wp-content/plugins/wp-group-subscriptions/core/admin/features/page/Screen.php(59): H4APlugin\Core\Admin\Screen->html_page_template()
#4 wp-content/plugins/wp-group-subscriptions/core/admin/features/page/Screen.php(42): H4APlugin\Core\Admin\Screen->init_template()
#5 wp-content/plugins/wp-group-subscriptions/core/admin/feature
SRP 50% 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
The following issues need your attention
- 90× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\Core\\Admin\\EditItemTemplate' not found in wp-content/plugins/wp-group-subscriptions/admin/headings/accounting/Edit_Subscriber.php:24
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-group-subscriptions/common/classes/widgets/Profile_Widget.php:10
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\WPGroupSubs\\Shortcodes\\Shortcode' not found in wp-content/plugins/wp-group-subscriptions/front-end/shortcodes/restricted-content/RestrictedContentShortcode.php:8
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\Core\\Common\\CommonNotice' not found in wp-content/plugins/wp-group-subscriptions/core/front-end/features/notices/FrontEndNotice.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function H4APlugin\\Core\\get_current_plugin_domain() in wp-content/plugins/wp-group-subscriptions/front-end/shortcodes/my-profile/views/view-my-profile.php:2
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\Core\\Admin\\H4A_List_Table_Base' not found in wp-content/plugins/wp-group-subscriptions/core/admin/features/page/template/list-table/H4A_List_Table.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function H4APlugin\\Core\\get_current_plugin_domain() in wp-content/plugins/wp-group-subscriptions/admin/headings/accounting/views/view-subscriber-step-1.php:8
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\Core\\Admin\\Puc_v4p4_Vcs_Api' not found in wp-content/plugins/wp-group-subscriptions/core/admin/features/update/Puc/v4p4/Vcs/GitLabApi.php:5
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\Core\\Common\\Item' not found in wp-content/plugins/wp-group-subscriptions/core/common/features/item/EditableItem.php:16
- > PHP Fatal error
Uncaught Error: Class 'H4APlugin\\WPGroupSubs\\Common\\Subscriber' not found in wp-content/plugins/wp-group-subscriptions/admin/headings/members/views/view-member-step-1.php:8
- > 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/admin.php?page=subscribers
- > Network (severe)
wp-content/plugins/wp-group-subscriptions/admin/headings/accounting/views/css/wgs-subscribers.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6 in wp-group-subscriptions/assets to your readme.txt
wp-group-subscriptions/WPGroupSubs.php 92% from 13 tests
"WP Group Subscriptions" version 0.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-group-subscriptions.php" instead of "WPGroupSubs.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
No dangerous file extensions were detected29,625 lines of code in 222 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 140 | 4,100 | 4,126 | 21,693 |
JavaScript | 28 | 568 | 343 | 2,437 |
XML | 15 | 0 | 70 | 2,186 |
PO File | 11 | 759 | 1,114 | 1,871 |
CSS | 24 | 317 | 295 | 1,333 |
JSON | 2 | 8 | 0 | 49 |
INI | 1 | 3 | 0 | 41 |
SVG | 1 | 0 | 1 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 25.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 4.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 3 | |
Traits | 6 | |
Classes | 115 | |
▷ Abstract classes | 21 | 18.26% |
▷ Concrete classes | 94 | 81.74% |
▷ Final classes | 0 | 0.00% |
Methods | 1,020 | |
▷ Static methods | 221 | 21.67% |
▷ Public methods | 621 | 60.88% |
▷ Protected methods | 296 | 29.02% |
▷ Private methods | 103 | 10.10% |
Functions | 116 | |
▷ Named functions | 109 | 93.97% |
▷ Anonymous functions | 7 | 6.03% |
Constants | 42 | |
▷ Global constants | 35 | 83.33% |
▷ Class constants | 7 | 16.67% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin