84% oembed-internal-link

Code Review | oEmbed Internal Link

WordPress plugin oEmbed Internal Link scored84%from 54 tests.

About plugin

  • Plugin page: oembed-internal-link
  • Plugin version: 0.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-4.4
  • WordPress version: 6.3.1
  • First release: Oct 21, 2011
  • Latest release: Jan 3, 2016
  • Number of updates: 11
  • Update frequency: every 141.1 days
  • Top authors: miyauchi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,396 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

An overview of server-side resources used by oEmbed Internal Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.59 ▼4.85
Dashboard /wp-admin3.31 ▲0.0150.77 ▲0.86
Posts /wp-admin/edit.php3.36 ▲0.0048.65 ▼2.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.91 ▼21.20
Media Library /wp-admin/upload.php3.23 ▲0.0040.00 ▲3.20

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for oEmbed Internal Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲514.31 ▼0.221.77 ▼0.0844.16 ▲2.55
Dashboard /wp-admin2,198 ▲215.65 ▲0.0696.52 ▲2.8142.89 ▼4.66
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0535.30 ▼5.7933.54 ▼5.69
Add New Post /wp-admin/post-new.php1,526 ▼223.14 ▼0.05667.96 ▼10.1961.65 ▲7.23
Media Library /wp-admin/upload.php1,403 ▲34.33 ▲0.1099.55 ▼7.6343.11 ▼3.94

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/oembed-internal-link/oembed-internal-link.php:19

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: widget

oembed-internal-link/oembed-internal-link.php 92% from 13 tests

The main PHP script in "oEmbed Internal Link" version 0.5.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin112 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121058
CSS28054

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/bg.png0.20KB0.16KB▼ 18.23%