73% embed-image-links

Code Review | Embed Image Links

WordPress plugin Embed Image Links scored73%from 54 tests.

About plugin

  • Plugin page: embed-image-links
  • Plugin version: 1.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Feb 16, 2013
  • Latest release: Dec 10, 2018
  • Number of updates: 19
  • Update frequency: every 111.7 days
  • Top authors: 2biazdk (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,747 total downloads

Benchmarks

Plugin footprint 83% from 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.06MB] [CPU: ▼6.20ms] Passed 4 tests

This is a short check of server-side resources used by Embed Image Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.95 ▲4.16
Dashboard /wp-admin3.37 ▲0.0747.11 ▼6.69
Posts /wp-admin/edit.php3.41 ▲0.0547.10 ▼2.66
Add New Post /wp-admin/post-new.php6.05 ▲0.1674.67 ▼17.73
Media Library /wp-admin/upload.php3.31 ▲0.0836.50 ▲2.28
Embed Image Links /wp-admin/options-general.php?page=embed-image-links-settings3.2130.76

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

Input-output and database impact of this plugin
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_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Embed Image Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.44 ▼0.8011.07 ▲9.4345.31 ▲0.69
Dashboard /wp-admin2,199 ▲225.55 ▲0.0288.25 ▲1.0439.07 ▼3.65
Posts /wp-admin/edit.php2,101 ▲12.03 ▲0.0733.78 ▼2.5135.19 ▲2.42
Add New Post /wp-admin/post-new.php1,531 ▼423.24 ▲5.04666.65 ▲23.4055.68 ▼8.86
Media Library /wp-admin/upload.php1,404 ▲44.05 ▼0.10112.03 ▲9.6648.66 ▲4.57
Embed Image Links /wp-admin/options-general.php?page=embed-image-links-settings8482.1725.7431.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=embed-image-links-settings
    • > Notice in wp-content/plugins/embed-image-links/embed-image-links.php+138
    Undefined index: msg

SRP 0% 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
Please take a closer look at the following
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/embed-image-links/js.php
    • > /wp-content/plugins/embed-image-links/embed-image-links.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined index: max-width-percentage in wp-content/plugins/embed-image-links/js.php on line 4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

embed-image-links/embed-image-links.php Passed 13 tests

Analyzing the main PHP file in "Embed Image Links" version 1.3.3
79 characters long description:
Automatically replace any image link with the source image in a post or a page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin154 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35226154

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions6
▷ Named functions6100.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/settings-icon.png2.65KB1.80KB▼ 32.30%