78% adaptive-images

Code Review | Adaptive Images for WordPress

WordPress plugin Adaptive Images for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: adaptive-images
  • Plugin version: 0.6.72
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 18, 2015
  • Latest release: Oct 22, 2022
  • Number of updates: 178
  • Update frequency: every 15.4 days
  • Top authors: nevma (100%)

Code review

54 tests

User reviews

56 reviews

Install metrics

6,000+ active /163,714 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Adaptive Images for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.11 ▼0.3622.11 ▼14.92
Dashboard /wp-admin3.52 ▲0.2246.24 ▼5.23
Posts /wp-admin/edit.php3.64 ▲0.2850.21 ▲5.21
Add New Post /wp-admin/post-new.php6.10 ▲0.2282.99 ▼11.60
Media Library /wp-admin/upload.php3.44 ▲0.2239.35 ▲3.77
Adaptive Images /wp-admin/options-general.php?page=adaptive-images3.3933.97

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Adaptive Images for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8914.74 ▲0.133.75 ▲2.0142.89 ▲0.80
Dashboard /wp-admin2,227 ▲505.58 ▲0.0284.50 ▼4.8441.12 ▼3.34
Posts /wp-admin/edit.php2,129 ▲292.13 ▲0.1236.73 ▲1.1434.58 ▼3.22
Add New Post /wp-admin/post-new.php1,549 ▲2323.03 ▼0.42636.78 ▼48.4353.62 ▼11.70
Media Library /wp-admin/upload.php1,432 ▲324.21 ▲0.0197.07 ▼3.5044.43 ▲0.47
Adaptive Images /wp-admin/options-general.php?page=adaptive-images1,3421.8326.1646.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=adaptive-images
    • > Notice in wp-content/plugins/adaptive-images/adaptive-images-admin.php+732
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/adaptive-images/index.php
    • > /wp-content/plugins/adaptive-images/adaptive-images-script.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, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed:
  • Screenshots: Please a description for screenshot #0 in adaptive-images/assets to your readme.txt
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt is a good inspiration

adaptive-images/adaptive-images.php Passed 13 tests

This is the main PHP file of "Adaptive Images for WordPress" version 0.6.72, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
86 characters long description:
Resizes your images, by device screen size, to reduce download time in the mobile web.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,722 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions68100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin