84% mini-iframe-box

Code Review | Mini iframe box

WordPress plugin Mini iframe box scored84%from 54 tests.

About plugin

  • Plugin page: mini-iframe-box
  • Plugin version: 1.4
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Dec 1, 2022
  • Number of updates: 9
  • Update frequency: every 106.1 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.99ms] Passed 4 tests

Server-side resources used by Mini iframe box
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.12 ▼3.74
Dashboard /wp-admin3.37 ▲0.0647.42 ▼0.99
Posts /wp-admin/edit.php3.48 ▲0.1249.45 ▼2.35
Add New Post /wp-admin/post-new.php5.95 ▲0.0687.43 ▼12.42
Media Library /wp-admin/upload.php3.29 ▲0.0634.74 ▼1.43
Mini iframe box /wp-admin/options-general.php?page=mini-iframe-box3.3033.80

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables
wp_miniifbox
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
mini-iframe-box
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Mini iframe box
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.384.28 ▲2.1043.53 ▼6.68
Dashboard /wp-admin2,207 ▲195.84 ▲0.9495.21 ▼53.3236.02 ▼12.26
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0340.55 ▲4.1135.85 ▲2.29
Add New Post /wp-admin/post-new.php1,545 ▼218.44 ▲0.40618.79 ▲13.3855.36 ▲3.49
Media Library /wp-admin/upload.php1,395 ▲44.36 ▲0.1897.93 ▼0.6348.02 ▲2.98
Mini iframe box /wp-admin/options-general.php?page=mini-iframe-box9352.1825.9524.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Please take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mini-iframe-box/mini-iframe-box.php
    • > /wp-content/plugins/mini-iframe-box/pages/image-management-add.php
    • > /wp-content/plugins/mini-iframe-box/pages/image-management-show.php
    • > /wp-content/plugins/mini-iframe-box/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
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
3 plugin tags: plugin, widget, iframe

mini-iframe-box/mini-iframe-box.php Passed 13 tests

The principal PHP file in "Mini iframe box" v. 1.4 is loaded by WordPress automatically on each request
76 characters long description:
A mini iframe window box that contains another html content or web page url.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected992 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP714420822
PO File14679106
JavaScript14064

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.30
Average class complexity11.67
▷ Minimum class complexity11.00
▷ Maximum class complexity13.00
Average method complexity2.68
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1894.74%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin