82% cloudimage

Code Review | Cloudimage - Fast and Responsive Images as a Service

WordPress plugin Cloudimage - Fast and Responsive Images as a Service scored 82% from 54 tests.

About plugin

  • Plugin page: cloudimage
  • Plugin version: 3.0.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.8.1
  • WordPress version: 5.8.1
  • First release: Jan 24, 2018
  • Latest release: Nov 1, 2021
  • Number of updates: 136
  • Update frequency: every 10.1 days
  • Top authors: cloudimage (62.5%)cloudimageio (38.24%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 20,261 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.13MB] [CPU: ▼147.47ms] Passed 4 tests

Server-side resources used by Cloudimage - Fast and Responsive Images as a Service
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0244.57 ▲8.60
Dashboard /wp-admin3.00 ▼0.0645.24 ▲1.27
Posts /wp-admin/edit.php3.06 ▼0.0432.05 ▼13.39
Add New Post /wp-admin/post-new.php4.99 ▼0.4474.14 ▼579.59
Media Library /wp-admin/upload.php3.00 ▲0.0031.43 ▲1.82
General /wp-admin/admin.php?page=cloudimage2.9829.55
Advanced /wp-admin/admin.php?page=cloudimage-advanced2.9830.64

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Cloudimage - Fast and Responsive Images as a Service: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,745 ▲14915.92 ▲0.409.72 ▼0.0953.90 ▲5.52
Dashboard /wp-admin3,002 ▲685.87 ▼0.24150.09 ▲1.09132.56 ▲27.38
Posts /wp-admin/edit.php2,796 ▲572.70 ▼0.0163.58 ▼0.6692.31 ▲0.48
Add New Post /wp-admin/post-new.php1,905 ▲29119.22 ▲0.63370.21 ▲4.88108.11 ▲2.57
Media Library /wp-admin/upload.php1,790 ▼205.02 ▼0.03129.15 ▼9.06143.88 ▲21.64
General /wp-admin/admin.php?page=cloudimage1,4022.2554.6093.58
Advanced /wp-admin/admin.php?page=cloudimage-advanced1,8732.1052.1593.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cloudimage-advanced
    • > Notice in wp-content/plugins/cloudimage/admin/class-cloudimage-admin.php+265
    Trying to access array offset on value of type bool

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cloudimage/public/partials/cloudimage-public-display.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloudimage/admin/partials/cloudimage-admin-advanced-display.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cloudimage/includes/class-cloudimage-output-buffering.php:92
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cloudimage/admin/partials/cloudimage-admin-general-display.php:18

User-side errors Passed 1 test

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


Plugin configuration 93% 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
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === Cloudimage - Fast and Responsive Images as a Service === )
  • Tags: You are using too many tags: 16 tag instead of maximum 10
You can look at the official readme.txt

cloudimage/cloudimage.php Passed 13 tests

The main PHP script in "Cloudimage - Fast and Responsive Images as a Service" version 3.0.4 is automatically included on every request by WordPress
63 characters long description:
The easiest way to deliver lightning fast images to your users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,723 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity21.12
▷ Minimum class complexity1.00
▷ Maximum class complexity123.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods23.28%
▷ Public methods3862.30%
▷ Protected methods58.20%
▷ Private methods1829.51%
▷ Named functions375.00%
▷ Anonymous functions125.00%
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/small_cloud.png5.69KB2.71KB▼ 52.32%
admin/images/logo_cloudimage.png6.00KB3.20KB▼ 46.62%
admin/images/cloudimage_icon.png1.29KB0.98KB▼ 24.11%
admin/images/big_cloud.png10.79KB4.26KB▼ 60.52%
admin/images/robot.png22.17KB7.62KB▼ 65.62%