84% wp-fluid-images

Code Review | WP Fluid Images

WordPress plugin WP Fluid Images scored84%from 54 tests.

About plugin

  • Plugin page: wp-fluid-images
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Oct 29, 2011
  • Latest release: May 4, 2012
  • Number of updates: 13
  • Update frequency: every 14.5 days
  • Top authors: ramseyp (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

800+ active /24,668 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼3.93ms] Passed 4 tests

Server-side resources used by WP Fluid Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0147.18 ▲4.71
Dashboard /wp-admin3.57 ▼0.0654.96 ▼15.10
Posts /wp-admin/edit.php3.69 ▲0.0149.69 ▲0.47
Add New Post /wp-admin/post-new.php6.16 ▲0.0196.14 ▼5.79
Media Library /wp-admin/upload.php3.50 ▲0.0140.14 ▲5.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Fluid Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.43 ▼0.738.43 ▲6.6743.63 ▲3.12
Dashboard /wp-admin2,195 ▲185.58 ▲0.0182.15 ▼6.8637.75 ▼6.85
Posts /wp-admin/edit.php2,100 ▼02.12 ▲0.1335.52 ▼0.6732.08 ▼5.64
Add New Post /wp-admin/post-new.php1,545 ▲1923.17 ▲5.59665.89 ▼43.9452.40 ▼3.71
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0798.17 ▼8.7444.59 ▼4.40

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-fluid-images/plugin.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tested up to: Invalid version format
You can look at the official readme.txt

wp-fluid-images/plugin.php 92% from 13 tests

The primary PHP file in "WP Fluid Images" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-fluid-images.php" instead of "plugin.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 plugin52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1132130
PHP181122

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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