84% restore-link-title-field

Code Review | Restore Link Title Field

WordPress plugin Restore Link Title Field scored84%from 54 tests.

About plugin

  • Plugin page: restore-link-titl...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.4
  • WordPress version: 6.3.1
  • First release: Apr 28, 2015
  • Latest release: Jan 6, 2016
  • Number of updates: 9
  • Update frequency: every 28.3 days
  • Top authors: Otto42 (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

5,000+ active /19,451 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

This is a short check of server-side resources used by Restore Link Title Field
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.25 ▼0.45
Dashboard /wp-admin3.31 ▲0.0140.38 ▼7.28
Posts /wp-admin/edit.php3.36 ▲0.0043.70 ▼2.18
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.39 ▼15.13
Media Library /wp-admin/upload.php3.23 ▲0.0036.63 ▲1.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Restore Link Title Field
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.44 ▲0.271.50 ▼0.2137.10 ▼2.17
Dashboard /wp-admin2,225 ▲374.91 ▼0.00111.74 ▼2.6043.46 ▼3.09
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0437.88 ▼4.3036.65 ▼1.34
Add New Post /wp-admin/post-new.php1,542 ▲2323.02 ▼0.39641.75 ▲40.9155.38 ▲2.16
Media Library /wp-admin/upload.php1,391 ▼04.18 ▼0.0497.84 ▼2.7044.42 ▼0.10

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/restore-link-title-field/restore-link-title-field.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: link, title, editor, tinymce

restore-link-title-field/restore-link-title-field.php Passed 13 tests

The entry point to "Restore Link Title Field" version 1.3 is a PHP file that has certain tags in its header comment area
60 characters long description:
Adds back the missing title field to the TinyMCE link editor

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12915101
PHP13108

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin