100% l7-automatic-updates

Code Review | L7 Automatic Updates

WordPress plugin L7 Automatic Updates scored 100% from 53 tests.

About plugin

  • Plugin page: l7-automatic-updates
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.2-4.8.1
  • WordPress version: 5.8.1
  • First release: Oct 11, 2015
  • Latest release: Sep 2, 2017
  • Number of updates: 20
  • Update frequency: every 35.1 days
  • Top authors: jeffreysmattson (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 1,026 total downloads

Benchmarks

Plugin footprint Passed 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.08MB] [CPU: ▼256.17ms] Passed 4 tests

Analyzing server-side resources used by L7 Automatic Updates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0739.54 ▲10.77
Dashboard /wp-admin3.15 ▲0.1058.93 ▲13.32
Posts /wp-admin/edit.php3.26 ▲0.1647.29 ▲4.60
Add New Post /wp-admin/post-new.php5.51 ▲0.0893.05 ▼1,036.87
Media Library /wp-admin/upload.php3.09 ▲0.0931.96 ▼3.17
L7 Auto Updates /wp-admin/options-general.php?page=l7-automatic-updates3.0631.56

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for L7 Automatic Updates
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,654 ▲7315.83 ▲0.177.75 ▼0.4145.56 ▼1.62
Dashboard /wp-admin2,932 ▲795.91 ▲0.05155.30 ▲22.42104.79 ▲5.66
Posts /wp-admin/edit.php2,711 ▲82.70 ▲0.0268.64 ▲2.1195.68 ▲4.91
Add New Post /wp-admin/post-new.php1,484 ▼36918.44 ▼0.78347.09 ▼33.15108.58 ▼0.52
Media Library /wp-admin/upload.php1,777 ▲55.02 ▲0.03162.43 ▲17.18108.13 ▼4.05
L7 Auto Updates /wp-admin/options-general.php?page=l7-automatic-updates1,2252.4360.8276.90

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Everything seems fine, however this is by no means an exhaustive test

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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: automatic, updates, themes, minor, individual...

l7-automatic-updates/l7-automatic-updates.php Passed 13 tests

The principal PHP file in "L7 Automatic Updates" v. 2.0.0 is loaded by WordPress automatically on each request
50 characters long description:
Options for setting Wordpress's Automatic updates.

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 plugin2,105 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS1001,810
PHP265171275
JavaScript331620

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity2.13
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin