84% automatic-safe-update

Code Review | Automatic Safe Update

WordPress plugin Automatic Safe Update scored84%from 54 tests.

About plugin

  • Plugin page: automatic-safe-up...
  • Plugin version: 1.1.11
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.2
  • WordPress version: 6.3.1
  • First release: May 19, 2019
  • Latest release: May 12, 2023
  • Number of updates: 48
  • Update frequency: every 30.3 days
  • Top authors: ABCdatos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,178 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▲0.75ms] Passed 4 tests

Server-side resources used by Automatic Safe Update
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.74 ▲0.95
Dashboard /wp-admin3.34 ▲0.0355.03 ▲1.22
Posts /wp-admin/edit.php3.39 ▲0.0352.47 ▲2.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.37 ▼1.33
Media Library /wp-admin/upload.php3.26 ▲0.0337.51 ▲2.98

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Automatic Safe Update
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲7613.71 ▼0.571.68 ▼0.3342.48 ▼3.38
Dashboard /wp-admin2,247 ▲445.03 ▼0.83107.80 ▼3.8338.73 ▼7.53
Posts /wp-admin/edit.php2,125 ▲252.02 ▼0.0136.76 ▲0.2034.59 ▼1.01
Add New Post /wp-admin/post-new.php1,544 ▼123.08 ▼0.25615.69 ▼23.8650.57 ▼27.14
Media Library /wp-admin/upload.php1,423 ▲204.29 ▲0.03100.96 ▼5.9044.41 ▼7.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 10 options
    • asu_actualizaciones_informadas
    • db_upgraded
    • widget_theysaidso_widget
    • asu_hash
    • can_compress_scripts
    • theysaidso_admin_options
    • asu_json
    • widget_recent-posts
    • asu_log
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
The following issues need your attention
  • 7× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/automatic-safe-update/includes/configuracion.php
    • > /wp-content/plugins/automatic-safe-update/admin/options.php
    • > /wp-content/plugins/automatic-safe-update/uninstall.php
    • > /wp-content/plugins/automatic-safe-update/includes/mail.php
    • > /wp-content/plugins/automatic-safe-update/includes/functions.php
    • > /wp-content/plugins/automatic-safe-update/lista_opciones.php
    • > /wp-content/plugins/automatic-safe-update/automatic-safe-update.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
10 plugin tags: safety, versions, actualizacin, seguridad, versiones...

automatic-safe-update/automatic-safe-update.php 92% from 13 tests

The main file in "Automatic Safe Update" v. 1.1.11 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,236 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP81913551,236

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.28
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions83
▷ Named functions83100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/automatic-safe-update-32x32.png0.67KB0.83KB0.00%