94% easy-iframe

Code Review | Easy iFrame

WordPress plugin Easy iFrame scored 94% from 54 tests.

About plugin

  • Plugin page: easy-iframe
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 5.8.1
  • First release: Nov 6, 2017
  • Latest release: Nov 6, 2017
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ticano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 503 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼136.41ms] Passed 4 tests

Server-side resources used by Easy iFrame
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.84 ▲14.89
Dashboard /wp-admin3.06 ▲0.0145.29 ▲5.84
Posts /wp-admin/edit.php3.11 ▲0.0142.94 ▼0.43
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.27 ▼555.53
Media Library /wp-admin/upload.php3.00 ▲0.0034.19 ▲4.47

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy iFrame
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.83 ▲0.198.34 ▼3.0750.06 ▼4.95
Dashboard /wp-admin2,970 ▲395.88 ▼0.29132.05 ▼25.68115.96 ▼1.16
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0061.43 ▼3.8281.89 ▼7.36
Add New Post /wp-admin/post-new.php1,876 ▲20419.16 ▲0.28389.07 ▲5.97114.20 ▼0.37
Media Library /wp-admin/upload.php1,807 ▼35.05 ▲0.03135.50 ▼8.47125.22 ▲5.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/easy-iframe/easyiframe.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: iframe

easy-iframe/easyiframe.php 92% from 13 tests

"Easy iFrame" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-iframe.php" instead of "easyiframe.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1197

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin