94% https-oembed-providers

Code Review | HTTPS oEmbed Providers

WordPress plugin HTTPS oEmbed Providers scored 94% from 54 tests.

About plugin

  • Plugin page: https-oembed-prov...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 5.8.1
  • First release: Sep 19, 2012
  • Latest release: Sep 19, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: simonwheatley (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,039 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by HTTPS oEmbed Providers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0227.60 ▲1.60
Dashboard /wp-admin3.08 ▲0.0142.67 ▲0.79
Posts /wp-admin/edit.php3.13 ▲0.0238.02 ▲4.14
Add New Post /wp-admin/post-new.php5.44 ▼0.0087.61 ▼571.98
Media Library /wp-admin/upload.php3.02 ▲0.0226.08 ▲0.37

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for HTTPS oEmbed Providers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,675 ▲4915.73 ▼0.348.39 ▲3.0072.95 ▼2.92
Dashboard /wp-admin2,939 ▲436.13 ▼0.12115.03 ▼15.26168.17 ▼7.98
Posts /wp-admin/edit.php2,746 ▲93.24 ▲0.0069.26 ▲4.28178.24 ▲39.70
Add New Post /wp-admin/post-new.php3,813 ▲10618.21 ▼0.85492.13 ▲53.98171.71 ▲4.89
Media Library /wp-admin/upload.php1,761 ▲125.55 ▲0.05143.50 ▲7.48181.39 ▼3.61

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/https-oembed-providers/https-oembed.php:52

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: oembed, https

https-oembed-providers/https-oembed.php 85% from 13 tests

The entry point to "HTTPS oEmbed Providers" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("https-oembed-providers.php" instead of "https-oembed.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP194434

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin