84% image-banner-effects-lite

Code Review | Image Banner Effects Lite

WordPress plugin Image Banner Effects Lite scored 84% from 54 tests.

About plugin

  • Plugin page: image-banner-effe...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 5.9.2
  • First release: Mar 28, 2014
  • Latest release: Apr 16, 2016
  • Number of updates: 39
  • Update frequency: every 19.2 days
  • Top authors: GeorgeIron (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,212 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.03MB] [CPU: ▼321.80ms] Passed 4 tests

Server-side resources used by Image Banner Effects Lite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.0953.42 ▲4.45
Dashboard /wp-admin3.48 ▲0.0633.57 ▲0.79
Posts /wp-admin/edit.php3.70 ▲0.0635.79 ▼1.41
Add New Post /wp-admin/post-new.php6.94 ▼0.0492.76 ▼1,291.04
Media Library /wp-admin/upload.php3.35 ▲0.0532.06 ▲9.67

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 40 new files
Database: 1 new table, no new options
New tables
wp_ibeffects_layers

Browser metrics Passed 4 tests

A check of browser resources used by Image Banner Effects Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,898 ▲15416.29 ▲0.3410.53 ▲4.502.40 ▲0.44
Dashboard /wp-admin2,912 ▲516.16 ▼0.05118.46 ▼12.93157.70 ▼0.98
Posts /wp-admin/edit.php2,708 ▲173.24 ▲0.0063.93 ▲1.51144.08 ▲8.69
Add New Post /wp-admin/post-new.php1,773 ▲11222.74 ▲6.51535.63 ▲119.98163.57 ▲6.39
Media Library /wp-admin/upload.php1,718 ▲205.56 ▲0.02142.29 ▲0.58184.92 ▼6.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ibeffects_layers

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 3× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/image-banner-effects-lite/ajax_handler.php
    • > /wp-content/plugins/image-banner-effects-lite/image_banner_effects.php
    • > /wp-content/plugins/image-banner-effects-lite/ibeffects.php

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

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: images, media, ads, animations

image-banner-effects-lite/image_banner_effects.php 92% from 13 tests

"Image Banner Effects Lite" version 1.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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("image-banner-effects-lite.php" instead of "image_banner_effects.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin9,151 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript54692445,349
CSS54521202,587
PHP46216986
SVG100229

PHP code Passed 2 tests

This is a short overview 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.25
Average class complexity22.33
▷ Minimum class complexity14.00
▷ Maximum class complexity31.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods1562.50%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
15 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_888888_256x240.png6.83KB4.17KB▼ 38.92%
images/transparentback.png1.51KB0.17KB▼ 88.56%
css/images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
images/checked.png3.01KB0.31KB▼ 89.65%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%