84% lowermedia-iframes-on-demand

Code Review | LowerMedia iFrames On Demand

WordPress plugin LowerMedia iFrames On Demand scored84%from 54 tests.

About plugin

  • Plugin page: lowermedia-iframe...
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Dec 26, 2014
  • Latest release: Jan 27, 2015
  • Number of updates: 10
  • Update frequency: every 3.3 days
  • Top authors: hawkeye126 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.96ms] Passed 4 tests

A check of server-side resources used by LowerMedia iFrames On Demand
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.48 ▼9.73
Dashboard /wp-admin3.33 ▲0.0258.63 ▲9.23
Posts /wp-admin/edit.php3.38 ▲0.0251.08 ▼1.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.94 ▼9.45
Media Library /wp-admin/upload.php3.25 ▲0.0235.09 ▼3.16

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by LowerMedia iFrames On Demand
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲13713.85 ▼0.4110.29 ▲8.1342.12 ▲0.05
Dashboard /wp-admin2,206 ▲214.85 ▼0.97109.99 ▲3.5542.60 ▼7.55
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0242.74 ▲2.0935.98 ▼0.30
Add New Post /wp-admin/post-new.php1,514 ▼2317.44 ▼5.70651.61 ▼19.3956.89 ▼0.96
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.05105.45 ▼10.4945.75 ▲1.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/lowermedia-iframes-on-demand/lowermedia-iframes-on-demand.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: multisite, soundcloud, speed, vimeo, optimization...

lowermedia-iframes-on-demand/lowermedia-iframes-on-demand.php 92% from 13 tests

"LowerMedia iFrames On Demand" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 311 characters long)

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
Everything looks great! No dangerous files found in this plugin611 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
SVG1211458
PHP13849105
JavaScript1303148

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods6100.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin