84% embed-bare-image-links

Code Review | Embed bare image links

WordPress plugin Embed bare image links scored84%from 54 tests.

About plugin

  • Plugin page: embed-bare-image-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Dec 7, 2014
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: Diegobr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,245 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Embed bare image links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.67 ▼2.71
Dashboard /wp-admin3.31 ▼0.0345.86 ▼13.01
Posts /wp-admin/edit.php3.36 ▲0.0050.11 ▲0.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.46 ▼8.50
Media Library /wp-admin/upload.php3.24 ▲0.0039.14 ▲4.52

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Embed bare image links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.17 ▼1.201.78 ▲0.0240.14 ▲1.66
Dashboard /wp-admin2,206 ▲155.86 ▲0.97108.01 ▲7.7946.35 ▲4.05
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0440.58 ▲1.0434.86 ▼5.23
Add New Post /wp-admin/post-new.php1,547 ▲3318.01 ▲0.38601.09 ▼86.0868.36 ▲13.60
Media Library /wp-admin/upload.php1,388 ▼34.24 ▼0.0198.08 ▲0.1341.51 ▲0.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/embed-bare-image-links/embed-bare-image-links.php

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

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

"Embed bare image links" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
130 characters long description:
Converts bare image links inserted in the post content into HTML tagged images. Only applies into pictures not tagged by the user.

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
Good job! No executable or dangerous file extensions detected18 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223118

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 functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin