Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.98MB] [CPU: ▲6.48ms] Passed 4 tests
An overview of server-side resources used by My Private Site
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 45.46 ▲7.02 |
Dashboard /wp-admin | 4.51 ▲1.20 | 55.08 ▲4.01 |
Posts /wp-admin/edit.php | 4.53 ▲1.17 | 56.08 ▲14.35 |
Add New Post /wp-admin/post-new.php | 7.03 ▲1.14 | 91.75 ▲6.21 |
Media Library /wp-admin/upload.php | 4.36 ▲1.13 | 46.44 ▲8.66 |
Advanced /wp-admin/admin.php?page=my_private_site_tab_advanced | 4.74 | 49.08 |
Site Privacy /wp-admin/admin.php?page=my_private_site_tab_site_privacy | 4.71 | 48.05 |
Home Page /wp-admin/admin.php?page=my_private_site_tab_public_pages | 4.69 | 48.01 |
Shortcodes /wp-admin/admin.php?page=my_private_site_tab_selective_content | 4.67 | 43.96 |
Licenses /wp-admin/admin.php?page=my_private_site_tab_licenses | 4.66 | 44.10 |
Landing Page /wp-admin/admin.php?page=my_private_site_tab_landing_page | 4.71 | 45.99 |
Membership /wp-admin/admin.php?page=my_private_site_tab_membership | 4.69 | 49.06 |
My Private Site /wp-admin/admin.php?page=my_private_site_tab_main | 4.59 | 44.42 |
Add-ons /wp-admin/admin.php?page=my_private_site_tab_addons | 4.58 | 56.05 |
Server storage [IO: ▲3.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 397 new files
Database: no new tables, 16 new options
New WordPress options |
---|
db_upgraded |
jr_ps_my_private_site_tab_public_pages_button_list |
widget_recent-comments |
jr_ps_internal_settings |
theysaidso_admin_options |
jr_ps_first_run_time |
jr_ps_settings |
jr_ps_my_private_site_tab_site_privacy_button_list |
widget_theysaidso_widget |
jr_ps_my_private_site_tab_selective_content_button_list |
... |
Browser metrics Passed 4 tests
Checking browser requirements for My Private Site
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,865 ▲103 | 14.35 ▼0.03 | 1.83 ▲0.18 | 48.34 ▲8.51 |
Dashboard /wp-admin | 2,270 ▲90 | 5.63 ▲0.01 | 92.19 ▼12.11 | 39.05 ▼8.34 |
Posts /wp-admin/edit.php | 2,175 ▲75 | 2.08 ▲0.06 | 42.00 ▲5.73 | 35.73 ▲1.90 |
Add New Post /wp-admin/post-new.php | 1,745 ▲219 | 22.51 ▼1.11 | 664.20 ▼30.31 | 49.18 ▼3.76 |
Media Library /wp-admin/upload.php | 1,472 ▲72 | 4.27 ▼0.00 | 100.34 ▼7.55 | 43.59 ▼5.27 |
Advanced /wp-admin/admin.php?page=my_private_site_tab_advanced | 1,232 | 4.17 | 77.04 | 49.12 |
Site Privacy /wp-admin/admin.php?page=my_private_site_tab_site_privacy | 1,017 | 2.16 | 29.10 | 32.47 |
Home Page /wp-admin/admin.php?page=my_private_site_tab_public_pages | 981 | 2.28 | 26.35 | 30.31 |
Shortcodes /wp-admin/admin.php?page=my_private_site_tab_selective_content | 951 | 2.28 | 28.52 | 32.48 |
Licenses /wp-admin/admin.php?page=my_private_site_tab_licenses | 910 | 2.17 | 31.28 | 28.00 |
Landing Page /wp-admin/admin.php?page=my_private_site_tab_landing_page | 1,019 | 1.88 | 26.75 | 32.15 |
Membership /wp-admin/admin.php?page=my_private_site_tab_membership | 969 | 2.16 | 27.05 | 32.92 |
My Private Site /wp-admin/admin.php?page=my_private_site_tab_main | 1,482 | 9.36 | 287.10 | 65.14 |
Add-ons /wp-admin/admin.php?page=my_private_site_tab_addons | 1,007 | 2.25 | 26.84 | 32.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options detected upon uninstall: 14 options
- jr_ps_my_private_site_tab_public_pages_button_list
- jr_ps_my_private_site_tab_selective_content_button_list
- jr_ps_my_private_site_tab_membership_button_list
- jr_ps_my_private_site_tab_landing_page_button_list
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- jr_ps_my_private_site_tab_licenses_button_list
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 50× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/CMB2_Field.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/types/CMB2_Type_Taxonomy_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jonradio-private-site/admin/selective-content.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jonradio-private-site/admin/advanced.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jonradio-private-site/includes/net-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/CMB2.php:21
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/types/CMB2_Type_Counter_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/jonradio-private-site/library/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=my_private_site_tab_main
- > Javascript (severe) in unknown
http://s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js 194:13 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6 in jonradio-private-site/assets to your readme.txt
jonradio-private-site/jonradio-private-site.php Passed 13 tests
The main file in "My Private Site" v. 3.0.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Easily secure posts, pages, or your entire WordPress site by requiring visitors to login.
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 plugin50,295 lines of code in 241 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 78 | 2,668 | 7,365 | 9,735 |
CSS | 16 | 371 | 1,248 | 4,944 |
JavaScript | 13 | 506 | 711 | 1,979 |
Markdown | 6 | 353 | 0 | 992 |
HTML | 3 | 6 | 3 | 168 |
JSON | 3 | 0 | 0 | 104 |
Bourne Shell | 1 | 5 | 2 | 27 |
C | 1 | 7 | 4 | 23 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 19.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 68 | |
▷ Abstract classes | 9 | 13.24% |
▷ Concrete classes | 59 | 86.76% |
▷ Final classes | 0 | 0.00% |
Methods | 542 | |
▷ Static methods | 91 | 16.79% |
▷ Public methods | 450 | 83.03% |
▷ Protected methods | 89 | 16.42% |
▷ Private methods | 3 | 0.55% |
Functions | 152 | |
▷ Named functions | 149 | 98.03% |
▷ Anonymous functions | 3 | 1.97% |
Constants | 10 | |
▷ Global constants | 4 | 40.00% |
▷ Class constants | 6 | 60.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.20MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/tags-categories-500px.png | 76.38KB | 27.90KB | ▼ 63.48% |
library/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
library/cmb2/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
library/cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
library/cmb2/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |