78% wp-thumbnail-linkbox-shortcode

Code Review | WP Thumbnail Linkbox Shortcode

WordPress plugin WP Thumbnail Linkbox Shortcode scored78%from 54 tests.

About plugin

  • Plugin page: wp-thumbnail-link...
  • Plugin version: 0.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3
  • WordPress version: 6.3.1
  • First release: Feb 6, 2017
  • Latest release: Nov 21, 2019
  • Number of updates: 14
  • Update frequency: every 72.6 days
  • Top authors: ejointjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,114 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: ▼7.70ms] Passed 4 tests

A check of server-side resources used by WP Thumbnail Linkbox Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.24 ▲2.12
Dashboard /wp-admin3.32 ▲0.0246.31 ▼0.88
Posts /wp-admin/edit.php3.38 ▲0.0245.92 ▼9.38
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.77 ▼17.59
Media Library /wp-admin/upload.php3.25 ▲0.0236.27 ▼2.93
WP Thumbnail Linkbox /wp-admin/options-general.php?page=wptls-setting3.2430.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

WP Thumbnail Linkbox Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲4914.44 ▲0.151.99 ▲0.4244.54 ▲5.69
Dashboard /wp-admin2,202 ▲225.61 ▼0.0697.51 ▲10.0741.41 ▼7.11
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0235.91 ▼0.8631.78 ▼4.19
Add New Post /wp-admin/post-new.php1,531 ▼823.27 ▲0.11654.12 ▼17.1551.90 ▼7.69
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0294.04 ▼5.4944.02 ▼2.02
WP Thumbnail Linkbox /wp-admin/options-general.php?page=wptls-setting9271.9921.8946.24

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wptls-setting
    • > Notice in wp-content/plugins/wp-thumbnail-linkbox-shortcode/wp-thumbnail-linkbox-shortcode.php+183
    Trying to access array offset on value of type bool

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-thumbnail-linkbox-shortcode/wp-thumbnail-linkbox-shortcode.php:39

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

wp-thumbnail-linkbox-shortcode/wp-thumbnail-linkbox-shortcode.php Passed 13 tests

The main file in "WP Thumbnail Linkbox Shortcode" v. 0.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
You can easily create links with thumbnails with shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin387 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP27551221
PO File1182470
Sass18551
Stylus18043
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity2.94
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin