Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.36ms] Passed 4 tests
Server-side resources used by Lock Your Updates Plugins/Themes Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.33 ▲1.42 |
Dashboard /wp-admin | 3.61 ▲0.30 | 47.89 ▼0.67 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 46.21 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.30 | 89.23 ▼9.98 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 38.24 ▲7.55 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lock Your Updates Plugins/Themes Manager
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.30 | 1.75 ▲0.07 | 43.75 ▲3.50 |
Dashboard /wp-admin | 2,198 ▲27 | 5.62 ▲0.05 | 94.56 ▲6.78 | 41.98 ▼0.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.94 ▼0.02 | 35.61 ▼3.92 | 35.39 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.25 ▲0.08 | 607.84 ▼71.27 | 43.01 ▼10.63 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▲0.00 | 98.77 ▼0.23 | 43.40 ▲0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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: 6 options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
lock-your-updates/lock-your-updates.php Passed 13 tests
The primary PHP file in "Lock Your Updates Plugins/Themes Manager" version 1.1 is used by WordPress to initiate all plugin functionality
105 characters long description:
Allows you to lock your plugins and themes from being updated and keep notes on why they're being locked.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin867 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 561 | 830 | 846 |
SVG | 1 | 0 | 1 | 17 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing 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.96 |
Average class complexity | 177.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 350.00 |
Average method complexity | 10.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
9 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/unlocked-icon-small.png | 0.31KB | 0.27KB | ▼ 13.17% |
admin/assets/images/locked-unlocked-update-icons.png | 10.28KB | 5.00KB | ▼ 51.43% |
admin/assets/images/unlocked-note-icon-small.png | 0.44KB | 0.44KB | ▼ 0.88% |
admin/assets/images/locked-unlocked-icons.png | 0.76KB | 0.71KB | ▼ 7.55% |
admin/assets/images/locked-unlocked-note-icons.png | 1.48KB | 1.09KB | ▼ 25.81% |