10% tag-to-link-jqueryrank-sculpting

Code Review | Tag to Link / Element to a

WordPress plugin Tag to Link / Element to a scored10%from 54 tests.

About plugin

  • Plugin page: tag-to-link-jquer...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-5.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2013
  • Latest release: May 9, 2019
  • Number of updates: 27
  • Update frequency: every 79.0 days
  • Top authors: Evigeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,178 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/tag-to-link-jqueryrank-sculpting/element-to-link.php+47
    Undefined variable: instance

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.93ms] Passed 4 tests

A check of server-side resources used by Tag to Link / Element to a
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0638.80 ▼6.25
Dashboard /wp-admin3.36 ▲0.0549.47 ▼6.59
Posts /wp-admin/edit.php3.47 ▲0.1154.57 ▼0.89
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.41 ▼21.33
Media Library /wp-admin/upload.php3.28 ▲0.0538.45 ▼1.56
Tag To Link /wp-admin/options-general.php?page=tag-to-link3.2534.75

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Tag to Link / Element to a
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲9113.85 ▼0.778.69 ▲6.8339.67 ▼3.39
Dashboard /wp-admin2,199 ▲225.61 ▼0.06101.55 ▲7.7644.62 ▼0.25
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0140.32 ▲0.5336.01 ▼2.20
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▲0.06654.74 ▼47.2849.78 ▼3.17
Media Library /wp-admin/upload.php1,407 ▲74.21 ▲0.02105.10 ▲1.5844.97 ▼1.89
Tag To Link /wp-admin/options-general.php?page=tag-to-link9101.9928.3132.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/tag-to-link-jqueryrank-sculpting/element-to-link.php on line 13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tag-to-link-jqueryrank-sculpting/element-to-link.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 28 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Exemple d'installation de la classe et de l'attribut (installation example).), #2 (Résultat de l'installation (result of the installation example).), #3 (Page des réglages (plugin settings).)
The official readme.txt is a good inspiration

tag-to-link-jqueryrank-sculpting/element-to-link.php 85% from 13 tests

The main file in "Tag to Link / Element to a" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 387 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("tag-to-link-jqueryrank-sculpting.php" instead of "element-to-link.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected599 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PO File58184349
PHP21825133
JavaScript21214117

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions8
▷ Named functions8100.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
3 PNG files occupy 0.38MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.55KB10.57KB▼ 48.55%
screenshot-3.png133.14KB52.02KB▼ 60.93%
screenshot-2.png235.07KB138.50KB▼ 41.08%