Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲2.03MB] [CPU: ▲11.57ms] Passed 4 tests
This is a short check of server-side resources used by Opal Membership
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.40 ▲1.94 | 54.50 ▲11.27 |
Dashboard /wp-admin | 5.39 ▲2.09 | 64.25 ▲10.77 |
Posts /wp-admin/edit.php | 5.41 ▲2.05 | 66.35 ▲8.90 |
Add New Post /wp-admin/post-new.php | 7.95 ▲2.06 | 114.58 ▲15.32 |
Media Library /wp-admin/upload.php | 5.30 ▲2.08 | 59.96 ▲20.52 |
Member Users /wp-admin/admin.php?page=opalmembership-users | 5.32 | 57.74 |
Settings /wp-admin/admin.php?page=opalmembership-settings | 5.73 | 61.26 |
All Coupons /wp-admin/edit.php?post_type=membership_coupons | 5.34 | 53.64 |
Categories /wp-admin/edit-tags.php?taxonomy=membership_category&post_type=membership_packages | 5.30 | 53.38 |
All Packages /wp-admin/edit.php?post_type=membership_packages | 5.35 | 57.47 |
All Payments /wp-admin/edit.php?post_type=membership_payments | 5.34 | 54.12 |
Server storage [IO: ▲5.51MB] [DB: ▲0.02MB] 67% from 3 tests
Input-output and database impact of this plugin
These are issues you should consider
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/opal-membership/" and "wp-content/uploads/"
- (new file) opal-logs/.empty
Filesystem: 722 new files
Database: no new tables, 11 new options
New WordPress options |
---|
opalmembership_use_php_sessions |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_opalmembership_current_package |
widget_opalmembership_quick_purchase |
opalmembership_settings |
opalmembership_version |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Opal Membership
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,895 ▲134 | 14.74 ▲0.33 | 3.70 ▲1.85 | 41.54 ▲4.95 |
Dashboard /wp-admin | 2,246 ▲68 | 5.58 ▼0.13 | 93.99 ▼13.59 | 75.50 ▲32.11 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.02 ▲0.04 | 34.99 ▼6.99 | 33.32 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 22.79 ▼0.26 | 689.20 ▲84.40 | 67.40 ▲13.69 |
Media Library /wp-admin/upload.php | 1,463 ▲63 | 4.27 ▲0.06 | 99.19 ▼13.32 | 73.98 ▲28.10 |
Member Users /wp-admin/admin.php?page=opalmembership-users | 1,126 | 2.20 | 27.94 | 32.29 |
Settings /wp-admin/admin.php?page=opalmembership-settings | 2,915 | 2.20 | 27.14 | 43.69 |
All Coupons /wp-admin/edit.php?post_type=membership_coupons | 1,130 | 1.95 | 35.55 | 30.54 |
Categories /wp-admin/edit-tags.php?taxonomy=membership_category&post_type=membership_packages | 1,341 | 2.15 | 28.86 | 35.64 |
All Packages /wp-admin/edit.php?post_type=membership_packages | 1,139 | 1.92 | 36.00 | 29.38 |
All Payments /wp-admin/edit.php?post_type=membership_payments | 1,131 | 2.06 | 37.45 | 36.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- widget_opalmembership_quick_purchase
- widget_recent-comments
- opalmembership_settings
- widget_recent-posts
- opalmembership_version
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- opalmembership_use_php_sessions
- theysaidso_admin_options
- ...
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
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/opal-membership/templates/no-found.php
- 58× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function OpalMembership() in wp-content/plugins/opal-membership/inc/admin/metaboxes/views/html-order-data.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function cmb2_dir() in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/rest-api/CMB2_REST_Controller.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/types/CMB2_Type_Checkbox.php:13
- > PHP Notice
Undefined variable: highlighted in wp-content/plugins/opal-membership/templates/single-package-purchase-form.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/opal-membership/inc/widgets/quick-purchase.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/opal-membership/templates/account/history.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/rest-api/CMB2_REST.php:19
- > PHP Fatal error
Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/opal-membership/inc/vendors/cmb2/includes/CMB2_Options_Hookup.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: user, community, ecommerce, subscription, member...
opal-membership/opalmembership.php 69% from 13 tests
The primary PHP file in "Opal Membership" version 1.2.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("opal-membership.php" instead of "opalmembership.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "4.6")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected93,422 lines of code in 431 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 240 | 27,610 | 35,494 | 62,795 |
PHP | 151 | 5,209 | 10,979 | 18,055 |
CSS | 18 | 2,199 | 2,176 | 8,937 |
JavaScript | 11 | 530 | 634 | 2,194 |
Markdown | 4 | 333 | 0 | 969 |
Sass | 5 | 28 | 3 | 465 |
Ruby | 1 | 7 | 12 | 6 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 18.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 126 | |
▷ Abstract classes | 8 | 6.35% |
▷ Concrete classes | 118 | 93.65% |
▷ Final classes | 1 | 0.85% |
Methods | 1,012 | |
▷ Static methods | 204 | 20.16% |
▷ Public methods | 891 | 88.04% |
▷ Protected methods | 109 | 10.77% |
▷ Private methods | 12 | 1.19% |
Functions | 178 | |
▷ Named functions | 178 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 24 | |
▷ Global constants | 16 | 66.67% |
▷ Class constants | 8 | 33.33% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
29 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/vendors/cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
inc/vendors/cmb2/libraries/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
inc/vendors/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/vendors/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/vendors/cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |