67% imagelinks-interactive-image-builder-lite

Code Review | ImageLinks Interactive Image Builder for Wordpress

WordPress plugin ImageLinks Interactive Image Builder for Wordpress scored67%from 54 tests.

About plugin

  • Plugin page: imagelinks-intera...
  • Plugin version: 1.6.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Oct 27, 2023
  • Number of updates: 66
  • Update frequency: every 38.2 days
  • Top authors: avirtum (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /35,498 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.84MB] [CPU: ▲1.66ms] Passed 4 tests

Analyzing server-side resources used by ImageLinks Interactive Image Builder for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.13 ▲0.6741.19 ▲1.58
Dashboard /wp-admin4.19 ▲0.8945.13 ▼0.73
Posts /wp-admin/edit.php4.31 ▲0.9548.58 ▲3.52
Add New Post /wp-admin/post-new.php6.78 ▲0.8990.75 ▲2.27
Media Library /wp-admin/upload.php4.12 ▲0.8939.40 ▲7.93
Settings /wp-admin/admin.php?page=imagelinks_settings4.0932.24
Add New /wp-admin/admin.php?page=imagelinks_item4.4541.75
All Items /wp-admin/admin.php?page=imagelinks4.1734.39

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 406 new files
Database: 1 new table, 6 new options
New tables
wp_imagelinks
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by ImageLinks Interactive Image Builder for Wordpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▲0.081.77 ▲0.1236.17 ▼8.21
Dashboard /wp-admin2,223 ▲435.60 ▼0.0189.00 ▼0.3842.91 ▲2.33
Posts /wp-admin/edit.php2,131 ▲311.97 ▼0.0739.99 ▲5.2237.70 ▲1.25
Add New Post /wp-admin/post-new.php1,551 ▲1623.36 ▲5.16657.23 ▲19.5364.40 ▼4.23
Media Library /wp-admin/upload.php1,431 ▲284.31 ▲0.0695.25 ▼0.2639.11 ▼3.45
Settings /wp-admin/admin.php?page=imagelinks_settings1,6802.2138.6445.80
Add New /wp-admin/admin.php?page=imagelinks_item4,2187.92170.3293.37
All Items /wp-admin/admin.php?page=imagelinks1,2902.9636.4530.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=imagelinks_item
    • > POST request to /wp-admin/admin-ajax.php
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=imagelinks_item
    • > Console-api (severe) in wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0+0:96523
    $scan, error in callback: appData.ui.activeMarker" "tinyMCE is not defined" Object "ReferenceError: tinyMCE is not defined\n at Object.\u003Canonymous> (/wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:8038)\n at R (/wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:78370)\n at u.digest (/wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:78870)\n at u.scan (/wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:79511)\n at /wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:8347\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)\n at Object.fireWith [as resolveWith] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26015)\n at s.\u003Ccomputed> [as resolve] (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27983)\n at Object.success (/wp-content/plugins/imagelinks-interactive-image-builder-lite/assets/js/admin.min.js?ver=1.6.0:1:8869)\n at c (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:25266)

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: interactive image, infographics, product map, floor map

imagelinks-interactive-image-builder-lite/imagelinks.php 69% from 13 tests

Analyzing the main PHP file in "ImageLinks Interactive Image Builder for Wordpress" version 1.6.0
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.6")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("imagelinks-interactive-image-builder-lite.php" instead of "imagelinks.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 315 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,031 lines of code in 377 files:
LanguageFilesBlank linesComment linesLines of code
PHP183531,1323,068
SVG3012,995
PO File1264322601
JavaScript330110342
JSON170017
CSS80228

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity57.50
▷ Minimum class complexity3.00
▷ Maximum class complexity192.00
Average method complexity6.05
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods43
▷ Static methods00.00%
▷ Public methods4297.67%
▷ Protected methods00.00%
▷ Private methods12.33%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants8
▷ Global constants8100.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
16 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/tag-red.png1.29KB1.30KB0.00%
assets/images/pin-green.png1.24KB1.25KB0.00%
assets/images/flag-blue.png0.96KB0.96KB0.00%
assets/images/flag-red.png1.02KB1.02KB0.00%
assets/images/tag-green.png1.37KB1.39KB0.00%