90% de-updraftplus-backup-exclude-image-thumbnails

Code Review | Exclude Image Thumbnails From UpdraftPlus Backups

WordPress plugin Exclude Image Thumbnails From UpdraftPlus Backups scored90%from 54 tests.

About plugin

  • Plugin page: de-updraftplus-ba...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jan 12, 2018
  • Latest release: Aug 3, 2023
  • Number of updates: 42
  • Update frequency: every 48.3 days
  • Top authors: davidbaumwald (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

5,000+ active /31,670 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.40ms] Passed 4 tests

A check of server-side resources used by Exclude Image Thumbnails From UpdraftPlus Backups
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.26 ▲1.24
Dashboard /wp-admin3.31 ▲0.0151.85 ▲0.19
Posts /wp-admin/edit.php3.36 ▲0.0046.31 ▼5.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.51 ▼10.29
Media Library /wp-admin/upload.php3.24 ▲0.0033.37 ▼2.01

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Exclude Image Thumbnails From UpdraftPlus Backups: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.21 ▲0.031.78 ▼0.1245.61 ▲3.71
Dashboard /wp-admin2,195 ▲155.61 ▼0.03101.01 ▲7.6845.26 ▲5.46
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.1042.05 ▲1.8043.89 ▲2.48
Add New Post /wp-admin/post-new.php1,526 ▼023.10 ▼0.56660.50 ▼48.1252.65 ▼1.28
Media Library /wp-admin/upload.php1,400 ▲34.11 ▼0.1197.43 ▼9.6343.76 ▼4.70

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: backup, image size, exclude, updraftplus, image...

de-updraftplus-backup-exclude-image-thumbnails/de-updraft-backup-exclude-image-thumbnails.php 92% from 13 tests

This is the main PHP file of "Exclude Image Thumbnails From UpdraftPlus Backups" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("de-updraftplus-backup-exclude-image-thumbnails.php" instead of "de-updraft-backup-exclude-image-thumbnails.php")

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 plugin8 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13168

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
There were not PNG files found in your plugin