Benchmarks
Plugin footprint 83% 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: ▲0.06MB] [CPU: ▼6.99ms] Passed 4 tests
This is a short check of server-side resources used by Lock Down ( Privacy ) for Ultimate Member
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.87 ▲7.16 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.32 ▼5.08 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.42 ▼3.51 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.62 ▼17.25 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.02 ▼2.10 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Lock Down ( Privacy ) for Ultimate Member: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.04 | 1.93 ▲0.31 | 48.55 ▲4.31 |
Dashboard /wp-admin | 2,195 ▲15 | 5.58 ▼0.08 | 84.89 ▼11.52 | 41.02 ▲1.06 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.99 ▲0.01 | 36.20 ▼2.09 | 32.75 ▼2.79 |
Add New Post /wp-admin/post-new.php | 1,534 ▲8 | 18.45 ▼4.53 | 614.84 ▼70.06 | 71.21 ▲18.44 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.21 ▲0.03 | 102.10 ▼15.75 | 43.69 ▼5.69 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/um-lock-down/um-lock-down.php:375
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: ultimate member privacy, ultimate member, um lock down, ultimatemember, ultimate member lock down
um-lock-down/um-lock-down.php Passed 13 tests
This is the main PHP file of "Lock Down ( Privacy ) for Ultimate Member" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Let users pause their account and lock it down from others
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
There were no executable files found in this plugin16,338 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 15,885 |
PHP | 2 | 62 | 294 | 269 |
JavaScript | 1 | 41 | 145 | 174 |
XML | 1 | 2 | 4 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 23 | |
▷ Static methods | 4 | 17.39% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 1 | 4.35% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin