84% imgbacklink

Code Review | Imgbacklink

WordPress plugin Imgbacklink scored84%from 54 tests.

About plugin

  • Plugin page: imgbacklink
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.0
  • WordPress version: 6.3.1
  • First release: Dec 23, 2011
  • Latest release: Apr 23, 2014
  • Number of updates: 7
  • Update frequency: every 121.7 days
  • Top authors: ypraise (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Server-side resources used by Imgbacklink
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0048.17 ▲6.94
Dashboard /wp-admin3.31 ▼0.0450.48 ▼20.09
Posts /wp-admin/edit.php3.36 ▲0.0046.56 ▼4.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.14 ▼15.44
Media Library /wp-admin/upload.php3.23 ▲0.0037.86 ▲3.87

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Imgbacklink
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.17 ▼1.211.85 ▲0.0738.28 ▲0.35
Dashboard /wp-admin2,218 ▲185.89 ▲0.98103.53 ▼16.4639.71 ▼7.58
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0034.16 ▼3.5135.56 ▲1.41
Add New Post /wp-admin/post-new.php1,545 ▲523.11 ▲0.11671.54 ▲33.3959.29 ▲4.81
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.0299.18 ▼11.2544.59 ▲0.48

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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/imgbacklink/imgbacklink.php:35

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (When someone right clicks an image a box pops up giving the code for them to use.) image required
Please take inspiration from this readme.txt

imgbacklink/imgbacklink.php Passed 13 tests

The primary PHP file in "Imgbacklink" version 1.1 is used by WordPress to initiate all plugin functionality
122 characters long description:
When people right click on your images to get details a box pops up and proivdes both html link and bb code links options.

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
Success! There were no dangerous files found in this plugin174 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12311160
PHP1122314

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin