84% wp-iframe-images-gallery

Code Review | iFrame Images Gallery

WordPress plugin iFrame Images Gallery scored84%from 54 tests.

About plugin

  • Plugin page: wp-iframe-images-...
  • Plugin version: 9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jul 26, 2011
  • Latest release: Dec 1, 2022
  • Number of updates: 56
  • Update frequency: every 74.0 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /9,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by iFrame Images Gallery
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.42 ▼4.04
Dashboard /wp-admin3.31 ▲0.0149.11 ▼0.80
Posts /wp-admin/edit.php3.36 ▲0.0147.79 ▼8.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.97 ▼16.76
Media Library /wp-admin/upload.php3.24 ▲0.0134.97 ▼4.55
iFrame Images Gallery /wp-admin/options-general.php?page=iframe-images-gallery3.2734.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_iframe_plugin
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by iFrame Images Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.37 ▲0.071.68 ▼0.1744.82 ▲2.45
Dashboard /wp-admin2,199 ▲195.51 ▼0.1884.03 ▼4.9241.12 ▲0.06
Posts /wp-admin/edit.php2,104 ▲42.05 ▲0.0334.99 ▼2.1538.34 ▲4.86
Add New Post /wp-admin/post-new.php1,548 ▲2223.42 ▲5.85637.09 ▼4.1247.66 ▼5.57
Media Library /wp-admin/upload.php1,401 ▲14.26 ▲0.01113.22 ▲12.0648.87 ▲6.11
iFrame Images Gallery /wp-admin/options-general.php?page=iframe-images-gallery1,0282.0123.3228.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-iframe-images-gallery/pages/image-management-add.php
    • > /wp-content/plugins/wp-iframe-images-gallery/wp-iframe-images-gallery.php
    • > /wp-content/plugins/wp-iframe-images-gallery/pages/image-management-show.php
    • > /wp-content/plugins/wp-iframe-images-gallery/pages/image-management-edit.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: images, iframe, gallery, plugin

wp-iframe-images-gallery/wp-iframe-images-gallery.php 92% from 13 tests

The main PHP file in "iFrame Images Gallery" ver. 9.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin983 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55641671
PO File2113156268
JavaScript13043
HTML1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon/image-icon.png0.61KB0.66KB0.00%