Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.95ms] Passed 4 tests
A check of server-side resources used by PureDevs WP Locker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.70 ▼9.72 |
Dashboard /wp-admin | 3.40 ▲0.10 | 48.38 ▲2.43 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.86 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 94.55 ▲2.23 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.04 ▲4.26 |
PureDevs WP Locker /wp-admin/options-general.php?page=puredevs-wp-locker-setting | 3.29 | 31.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_user_ip_address |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PureDevs WP Locker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.61 ▼0.82 | 4.72 ▲2.74 | 37.48 ▼6.85 |
Dashboard /wp-admin | 2,211 ▲23 | 5.82 ▲0.94 | 98.85 ▼14.73 | 39.99 ▼8.64 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.03 | 41.77 ▲5.03 | 35.51 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.21 ▲0.09 | 630.52 ▼10.95 | 52.92 ▼0.58 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.22 ▲0.00 | 94.70 ▼12.01 | 40.80 ▼2.75 |
PureDevs WP Locker /wp-admin/options-general.php?page=puredevs-wp-locker-setting | 806 | 2.06 | 24.19 | 25.56 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/puredevs-wp-locker/public/partials/puredevs-wp-locker-public-display.php
- > /wp-content/plugins/puredevs-wp-locker/admin/partials/puredevs-wp-locker-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: hide, password, hide site, lock, password protected...
puredevs-wp-locker/puredevs-wp-locker.php Passed 13 tests
The principal PHP file in "PureDevs WP Locker" v. 1.0.0 is loaded by WordPress automatically on each request
91 characters long description:
Use PureDevs WP locker To safeguard your entire WordPress site, by using a single password.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected592 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 185 | 642 | 466 |
CSS | 2 | 15 | 9 | 120 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin