90% lock-your-updates

Code Review | Lock Your Updates Plugins/Themes Manager

WordPress plugin Lock Your Updates Plugins/Themes Manager scored90%from 54 tests.

About plugin

  • Plugin page: lock-your-updates
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 13, 2014
  • Latest release: Mar 22, 2015
  • Number of updates: 26
  • Update frequency: every 15.5 days
  • Top authors: bamadesigner (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

500+ active /5,776 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.33 ▲1.42
Dashboard /wp-admin3.61 ▲0.3047.89 ▼0.67
Posts /wp-admin/edit.php3.72 ▲0.3746.21 ▼0.20
Add New Post /wp-admin/post-new.php6.19 ▲0.3089.23 ▼9.98
Media Library /wp-admin/upload.php3.53 ▲0.3038.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.301.75 ▲0.0743.75 ▲3.50
Dashboard /wp-admin2,198 ▲275.62 ▲0.0594.56 ▲6.7841.98 ▼0.38
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0235.61 ▼3.9235.39 ▲1.83
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.08607.84 ▼71.2743.01 ▼10.63
Media Library /wp-admin/upload.php1,400 ▼34.18 ▲0.0098.77 ▼0.2343.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
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP4561830846
SVG10117
CSS2002
JavaScript2002

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 code0.96
Average class complexity177.50
▷ Minimum class complexity5.00
▷ Maximum class complexity350.00
Average method complexity10.54
▷ Minimum method complexity1.00
▷ Maximum method complexity56.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods38.11%
▷ Public methods3081.08%
▷ Protected methods00.00%
▷ Private methods718.92%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
admin/assets/images/unlocked-icon-small.png0.31KB0.27KB▼ 13.17%
admin/assets/images/locked-unlocked-update-icons.png10.28KB5.00KB▼ 51.43%
admin/assets/images/unlocked-note-icon-small.png0.44KB0.44KB▼ 0.88%
admin/assets/images/locked-unlocked-icons.png0.76KB0.71KB▼ 7.55%
admin/assets/images/locked-unlocked-note-icons.png1.48KB1.09KB▼ 25.81%