84% browser-title-bar-animation

Code Review | Browser Title Bar Animation - Don't lose visitors

WordPress plugin Browser Title Bar Animation - Don't lose visitors scored84%from 54 tests.

About plugin

  • Plugin page: browser-title-bar...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Jul 15, 2019
  • Latest release: Jul 21, 2019
  • Number of updates: 10
  • Update frequency: every 0.7 days
  • Top authors: sandesh055 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,577 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 gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼7.50ms] Passed 4 tests

Analyzing server-side resources used by Browser Title Bar Animation - Don't lose visitors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1741.65 ▼4.60
Dashboard /wp-admin3.49 ▲0.1854.65 ▼2.04
Posts /wp-admin/edit.php3.60 ▲0.2453.33 ▼2.76
Add New Post /wp-admin/post-new.php6.10 ▲0.2194.17 ▼20.58
Media Library /wp-admin/upload.php3.41 ▲0.1842.22 ▲7.68
Title Bar Animation /wp-admin/options-general.php?page=tbas-settings3.3837.09

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
tbas-version
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Browser Title Bar Animation - Don't lose visitors
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.63 ▲0.091.90 ▲0.0941.58 ▼4.47
Dashboard /wp-admin2,199 ▲255.56 ▼0.0289.01 ▼12.3338.07 ▼7.36
Posts /wp-admin/edit.php2,104 ▲42.09 ▲0.1337.13 ▲2.0631.18 ▼1.72
Add New Post /wp-admin/post-new.php6,364 ▲4,83618.95 ▼2.04976.56 ▲261.0862.35 ▲4.85
Media Library /wp-admin/upload.php1,407 ▲44.25 ▲0.07106.62 ▼8.4846.69 ▲3.27
Title Bar Animation /wp-admin/options-general.php?page=tbas-settings9902.0727.2327.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • tbas-version
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/browser-title-bar-animation/classes/class-tbas-admin.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-title-bar-animation/classes/class-tbas-update.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-title-bar-animation/classes/class-tbas-meta-fields.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/browser-title-bar-animation/classes/class-tbas-metabox.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: title-bar-animation, title-bar-effects, grab visitors

browser-title-bar-animation/browser-title-bar-animation.php Passed 13 tests

The main file in "Browser Title Bar Animation - Don't lose visitors" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
48 characters long description:
Don't lose visitors. Catch the user's attention.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,335 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP11340612977
JavaScript4810226
CSS3166132

PHP code Passed 2 tests

This is a short overview 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.31
Average class complexity12.44
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods66
▷ Static methods1116.67%
▷ Public methods66100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin