84% tnc-display-bookmark-in-wp-login-page

Code Review | TNC Display Bookmark In WP-Login Page

WordPress plugin TNC Display Bookmark In WP-Login Page scored 84% from 54 tests.

About plugin

  • Plugin page: tnc-display-bookm...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0+
  • WordPress version: 6.3.1
  • First release: Feb 5, 2015
  • Latest release: Feb 6, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: tunaucom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 600 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by TNC Display Bookmark In WP-Login Page
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.58 ▲1.35
Dashboard /wp-admin3.32 ▲0.0144.14 ▼3.61
Posts /wp-admin/edit.php3.37 ▲0.0144.25 ▼3.99
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.94 ▼18.92
Media Library /wp-admin/upload.php3.24 ▲0.0134.73 ▲2.52
Add New /wp-admin/link-add.php3.2230.85
All Links /wp-admin/link-manager.php3.2230.08
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category3.2332.02

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_links
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for TNC Display Bookmark In WP-Login Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.25 ▼1.134.59 ▲2.8847.61 ▲6.10
Dashboard /wp-admin2,237 ▲826.05 ▲0.38109.87 ▲10.7439.99 ▲1.27
Posts /wp-admin/edit.php2,120 ▲312.02 ▼0.0139.04 ▼2.3235.07 ▼2.89
Add New Post /wp-admin/post-new.php1,540 ▲1817.51 ▼5.69654.75 ▲35.6857.93 ▲6.19
Media Library /wp-admin/upload.php1,416 ▲254.28 ▲0.05102.71 ▼2.3444.63 ▲0.37
Add New /wp-admin/link-add.php1,6442.2346.2432.54
All Links /wp-admin/link-manager.php1,0561.7323.0728.76
Link Categories /wp-admin/edit-tags.php?taxonomy=link_category1,2962.1325.1330.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_links
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tnc-display-bookmark-in-wp-login-page/index.php:20

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
The official readme.txt is a good inspiration

tnc-display-bookmark-in-wp-login-page/index.php 92% from 13 tests

The main PHP script in "TNC Display Bookmark In WP-Login Page" version 1.6 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tnc-display-bookmark-in-wp-login-page.php" instead of "index.php")

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
There were no executable files found in this plugin22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP111322

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin