78% download-featured-images

Code Review | Download Featured Images

WordPress plugin Download Featured Images scored78%from 54 tests.

About plugin

  • Plugin page: download-featured...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Aug 21, 2016
  • Number of updates: 19
  • Update frequency: every 3.5 days
  • Top authors: shaile (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /1,995 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 successfully, without throwing any errors or notices

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

Server-side resources used by Download Featured Images
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0338.10 ▼4.80
Dashboard /wp-admin3.34 ▲0.0344.00 ▼7.97
Posts /wp-admin/edit.php3.39 ▲0.0341.89 ▼3.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.61 ▲3.54
Media Library /wp-admin/upload.php3.26 ▲0.0337.81 ▲4.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 14 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

Download Featured Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.39 ▼0.912.93 ▲1.1543.71 ▼0.79
Dashboard /wp-admin2,226 ▲415.85 ▼0.0498.85 ▼5.6163.50 ▲17.29
Posts /wp-admin/edit.php2,112 ▲232.03 ▲0.0338.21 ▼3.1732.17 ▼7.35
Add New Post /wp-admin/post-new.php1,548 ▲2718.04 ▼5.34635.94 ▼59.3769.29 ▲11.25
Media Library /wp-admin/upload.php1,413 ▲254.20 ▲0.0494.89 ▼5.8963.52 ▲20.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/download-featured-images/index.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/download-featured-images/include/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/download-featured-images/include/relatedposts.php:6

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: save featured image, download featured image, featured image

download-featured-images/index.php 92% from 13 tests

"Download Featured Images" version 2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("download-featured-images.php" instead of "index.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
There were no executable files found in this plugin345 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP35961248
CSS283361
JavaScript23336

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/mazekro.png1.56KB1.16KB▼ 25.50%
img/a03.png5.54KB3.44KB▼ 37.80%
img/mazeKro_big.png4.63KB3.42KB▼ 26.26%
img/download.png1.17KB0.94KB▼ 19.90%
img/b03.png2.46KB2.04KB▼ 17.06%