94% change-browser-tab-title-when-tab-is-not-active

Code Review | Browser Tab Title Reminder

WordPress plugin Browser Tab Title Reminder scored 94% from 54 tests.

About plugin

  • Plugin page: change-browser-ta...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4
  • WordPress version: 5.8.1
  • First release: Apr 24, 2019
  • Latest release: Apr 19, 2020
  • Number of updates: 7
  • Update frequency: every 51.6 days
  • Top authors: timvaniersel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active / 1,269 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Server-side resources used by Browser Tab Title Reminder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0134.63 ▲8.90
Dashboard /wp-admin3.07 ▲0.0244.48 ▼7.02
Posts /wp-admin/edit.php3.13 ▲0.0244.45 ▼1.33
Add New Post /wp-admin/post-new.php5.44 ▲0.0196.28 ▼547.60
Media Library /wp-admin/upload.php3.02 ▲0.0127.27 ▼9.89
Browser tab title /wp-admin/options-general.php?page=browser-tab-title-reminder3.0228.68

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Browser Tab Title Reminder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.88 ▲0.247.10 ▼1.1846.68 ▲1.90
Dashboard /wp-admin2,978 ▲475.96 ▼0.15146.83 ▲6.87110.28 ▲5.53
Posts /wp-admin/edit.php2,741 ▲22.69 ▼0.0168.77 ▲7.8883.54 ▼10.22
Add New Post /wp-admin/post-new.php1,675 ▼19718.76 ▼0.30344.41 ▼0.33106.98 ▲1.44
Media Library /wp-admin/upload.php1,815 ▲55.00 ▼0.03146.33 ▲7.65115.90 ▼1.71
Browser tab title /wp-admin/options-general.php?page=browser-tab-title-reminder1,0872.0654.1760.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/change-browser-tab-title-when-tab-is-not-active/admin/partials/browser-tab-title-reminder-admin-display.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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #2 (Title in browser)
You can look at the official readme.txt

change-browser-tab-title-when-tab-is-not-active/change-browser-tab-title-when-tab-is-not-active.php 92% from 13 tests

This is the main PHP file of "Browser Tab Title Reminder" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin302 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP11127494235
PO File18852
JavaScript12015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.28
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods2080.00%
▷ Protected methods00.00%
▷ Private methods520.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin