84% oembed-plus

Code Review | oEmbed Plus

WordPress plugin oEmbed Plus scored84%from 54 tests.

About plugin

  • Plugin page: oembed-plus
  • Plugin version: 1.6
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Aug 12, 2020
  • Latest release: Jul 15, 2021
  • Number of updates: 15
  • Update frequency: every 22.6 days
  • Top authors: ayeshrajans (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

4,000+ active /67,433 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.00MB] [CPU: ▼9.16ms] Passed 4 tests

An overview of server-side resources used by oEmbed Plus
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0137.38 ▲3.08
Dashboard /wp-admin3.32 ▼0.0243.42 ▼18.57
Posts /wp-admin/edit.php3.37 ▲0.0242.41 ▼6.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.70 ▼11.10
Media Library /wp-admin/upload.php3.24 ▲0.0135.84 ▼0.04

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for oEmbed Plus
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.021.90 ▲0.4047.82 ▲6.96
Dashboard /wp-admin2,192 ▲155.51 ▼0.1189.66 ▼3.3337.85 ▲0.48
Posts /wp-admin/edit.php2,097 ▼32.01 ▲0.0536.40 ▼3.4132.87 ▲1.13
Add New Post /wp-admin/post-new.php1,526 ▼1122.91 ▼0.05623.90 ▲22.1347.95 ▼34.22
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0495.51 ▼5.1739.92 ▼5.42

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oembed-plus/oembed-plus.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: embed, instagram, facebook, oembed

oembed-plus/oembed-plus.php Passed 13 tests

The primary PHP file in "oEmbed Plus" version 1.6 is used by WordPress to initiate all plugin functionality
91 characters long description:
Adds support for embedding Facebook and Instagram posts in Block Editor and Classic Editor.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin161 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP43310161

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity1.91
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods325.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.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
PNG images were not found in this plugin