90% iframe-me

Code Review | iFrame Me

WordPress plugin iFrame Me scored 90% from 54 tests.

About plugin

  • Plugin page: iframe-me
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.6
  • WordPress version: 6.3.1
  • First release: Jan 21, 2021
  • Latest release: Jan 29, 2021
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: soysudhanshu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 552 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
This plugin's installer ran successfully

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

Server-side resources used by iFrame Me
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0131.77 ▼11.45
Dashboard /wp-admin3.32 ▲0.0146.18 ▼3.27
Posts /wp-admin/edit.php3.37 ▲0.0146.68 ▼2.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0196.89 ▼1.05
Media Library /wp-admin/upload.php3.24 ▲0.0130.05 ▼2.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for iFrame Me
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.83 ▲0.541.69 ▲0.1741.46 ▼0.99
Dashboard /wp-admin2,206 ▲185.91 ▲0.94100.90 ▼8.3339.69 ▼5.44
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0636.78 ▼2.0136.87 ▼3.11
Add New Post /wp-admin/post-new.php1,533 ▲523.31 ▲0.07602.00 ▼43.6355.64 ▲3.27
Media Library /wp-admin/upload.php1,388 ▲34.28 ▲0.0598.59 ▼7.4043.08 ▼0.99

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in iframe-me/assets to your readme.txt
Please take inspiration from this readme.txt

iframe-me/iframe-me.php Passed 13 tests

The main file in "iFrame Me" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
A simple solution for inserting iFrames.

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 detected92 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4242892

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods375.00%
▷ Protected methods00.00%
▷ Private methods125.00%
Functions2
▷ Named functions2100.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
No PNG files were detected