94% screenr-oembed

Code Review | Screenr oEmbed

WordPress plugin Screenr oEmbed scored 94% from 53 tests.

About plugin

  • Plugin page: screenr-oembed
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.9.1
  • WordPress version: 5.8.1
  • First release: Jul 25, 2014
  • Latest release: Jul 25, 2014
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: tpflanz (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 532 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Server-side resources used by Screenr oEmbed
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.77 ▲14.74
Dashboard /wp-admin3.06 ▲0.0137.56 ▼10.63
Posts /wp-admin/edit.php3.11 ▲0.0145.36 ▲0.66
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.22 ▼1,094.07
Media Library /wp-admin/upload.php3.00 ▼0.0032.42 ▼10.92

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Screenr oEmbed
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲6816.26 ▲0.649.41 ▼0.5244.07 ▼5.50
Dashboard /wp-admin2,930 ▲776.08 ▲0.17141.80 ▲2.28106.45 ▲2.28
Posts /wp-admin/edit.php2,706 ▼02.69 ▼0.0067.41 ▲0.2988.62 ▼0.86
Add New Post /wp-admin/post-new.php1,879 ▲2618.94 ▲0.00350.10 ▼13.04109.71 ▲1.12
Media Library /wp-admin/upload.php1,772 ▼05.01 ▲0.01167.39 ▲16.21108.14 ▼10.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_oembed_add_provider() in wp-content/plugins/screenr-oembed/screenr-oembed.php:12

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: oembed, video, screenrcom, screenr

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

The main PHP file in "Screenr oEmbed" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected