84% responsive-oembed

Code Review | Responsive oEmbed

WordPress plugin Responsive oEmbed scored84%from 54 tests.

About plugin

  • Plugin page: responsive-oembed
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Apr 6, 2017
  • Latest release: Mar 3, 2019
  • Number of updates: 12
  • Update frequency: every 58.0 days
  • Top authors: greatestview (75%)palasthotel (33.33%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /2,530 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Responsive oEmbed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.99 ▼20.38
Dashboard /wp-admin3.32 ▲0.0147.08 ▼2.70
Posts /wp-admin/edit.php3.37 ▲0.0148.28 ▼7.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.68 ▼17.21
Media Library /wp-admin/upload.php3.24 ▲0.0137.71 ▲0.18

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Responsive oEmbed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.22 ▼0.051.80 ▼0.2640.49 ▼10.93
Dashboard /wp-admin2,195 ▲185.58 ▼0.0488.98 ▼7.7937.07 ▼4.01
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0436.44 ▼8.3233.68 ▼3.93
Add New Post /wp-admin/post-new.php1,526 ▼023.08 ▲0.25645.96 ▲3.0066.94 ▲3.80
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.02100.97 ▼6.1546.39 ▲3.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-oembed/responsive-oembed.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
7 plugin tags: aspect ratio, youtube, vimeo, iframe, responsive...

responsive-oembed/responsive-oembed.php 92% from 13 tests

"Responsive oEmbed" version 1.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 618 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin63 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1162148
CSS12715

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin