78% wp-force-images-download

Code Review | WP-Force Images Download

WordPress plugin WP-Force Images Download scored78%from 54 tests.

About plugin

  • Plugin page: wp-force-images-d...
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Oct 21, 2014
  • Latest release: Mar 25, 2022
  • Number of updates: 86
  • Update frequency: every 31.5 days
  • Top authors: nazakatali32 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active /7,877 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼1.80ms] Passed 4 tests

A check of server-side resources used by WP-Force Images Download
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.49 ▼4.45
Dashboard /wp-admin3.38 ▲0.0745.54 ▼3.57
Posts /wp-admin/edit.php3.43 ▲0.0749.40 ▲3.35
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.43 ▼2.53
Media Library /wp-admin/upload.php3.30 ▲0.0740.59 ▲4.92
WP-Force Images Download /wp-admin/options-general.php?page=wp-force-images-download3.2432.36

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WP-Force Images Download
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.29 ▼1.091.65 ▼0.3039.54 ▼10.98
Dashboard /wp-admin2,221 ▲364.87 ▼1.13111.07 ▼7.9543.14 ▼3.87
Posts /wp-admin/edit.php2,103 ▲142.03 ▼0.1039.98 ▲3.3336.06 ▲3.00
Add New Post /wp-admin/post-new.php1,547 ▲1423.50 ▲0.36653.23 ▼10.1662.65 ▲11.08
Media Library /wp-admin/upload.php1,403 ▲154.22 ▲0.0798.33 ▼5.2742.96 ▲0.61
WP-Force Images Download /wp-admin/options-general.php?page=wp-force-images-download1,0822.0728.5981.25

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=wp-force-images-download
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wp-force-images-download
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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
Almost there! Just fix the following items
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-force-images-download/wp_fid.php
    • > /wp-content/plugins/wp-force-images-download/inc.php
    • > /wp-content/plugins/wp-force-images-download/fd.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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (23 tag instead of maximum 10)
  • Contributors: Plugin contributors not specified
The official readme.txt might help

wp-force-images-download/wp_fid.php 92% from 13 tests

The primary PHP file in "WP-Force Images Download" version 1.8 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-force-images-download.php" instead of "wp_fid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin659 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP59172476
CSS11313183

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/new_style.png9.44KB3.34KB▼ 64.63%
img/dl.png3.31KB0.59KB▼ 82.05%
img/orig.png4.25KB1.38KB▼ 67.68%
img/icon.png3.55KB1.26KB▼ 64.41%