84% post-title-custom-link

Code Review | Post title link

WordPress plugin Post title link scored84%from 54 tests.

About plugin

  • Plugin page: post-title-custom...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Jan 10, 2020
  • Latest release: Dec 11, 2021
  • Number of updates: 9
  • Update frequency: every 78.2 days
  • Top authors: kinjaldalwadi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.81ms] Passed 4 tests

A check of server-side resources used by Post title link
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0142.02 ▲3.27
Dashboard /wp-admin3.32 ▼0.0347.23 ▼14.73
Posts /wp-admin/edit.php3.37 ▲0.0142.63 ▼7.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.70 ▼14.13
Media Library /wp-admin/upload.php3.24 ▲0.0131.66 ▼3.26

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Post title link
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.29 ▼1.294.62 ▲2.7644.02 ▼2.31
Dashboard /wp-admin2,209 ▲185.86 ▼0.05101.14 ▼6.6943.04 ▼4.17
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0137.98 ▼1.1732.10 ▼1.03
Add New Post /wp-admin/post-new.php6,247 ▲4,71921.45 ▲3.06851.35 ▲167.1258.15 ▼3.52
Media Library /wp-admin/upload.php1,388 ▲64.20 ▲0.0396.66 ▼1.8642.19 ▼0.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/post-title-custom-link/include/metaboxes.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-title-custom-link/post-title-custom-link.php:17

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

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === post-title-custom-link === )
The official readme.txt might help

post-title-custom-link/post-title-custom-link.php Passed 13 tests

The entry point to "Post title link" version 1.0 is a PHP file that has certain tags in its header comment area
38 characters long description:
Allow to add custom link in post title

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin49 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP351949

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin