84% scrolling-browser-title

Code Review | Scrolling browser title

WordPress plugin Scrolling browser title scored84%from 54 tests.

About plugin

  • Plugin page: scrolling-browser...
  • Plugin version: 1.2
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2021
  • Latest release: Dec 1, 2022
  • Number of updates: 5
  • Update frequency: every 87.2 days
  • Top authors: gopiplus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.45ms] Passed 4 tests

Server-side resources used by Scrolling browser title
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0448.69 ▲6.57
Dashboard /wp-admin3.34 ▲0.0451.08 ▲0.53
Posts /wp-admin/edit.php3.39 ▲0.0453.10 ▼0.83
Add New Post /wp-admin/post-new.php5.92 ▲0.0486.31 ▼20.50
Media Library /wp-admin/upload.php3.27 ▲0.0440.66 ▲3.00
Scrolling browser title /wp-admin/options-general.php?page=scrolling-browser-title3.2328.47

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
sbtp_pages
widget_recent-comments
sbtp_posts
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
sbtp_common
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Scrolling browser title
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲6413.28 ▼1.415.55 ▲3.4244.12 ▼1.22
Dashboard /wp-admin2,225 ▲224.84 ▼0.0799.07 ▼4.6938.46 ▼7.38
Posts /wp-admin/edit.php2,104 ▲42.05 ▼0.0839.84 ▼0.2035.09 ▼1.54
Add New Post /wp-admin/post-new.php1,548 ▼623.18 ▲4.88641.57 ▲13.9253.63 ▼1.21
Media Library /wp-admin/upload.php1,404 ▲74.31 ▼0.0896.68 ▼6.1546.98 ▲4.90
Scrolling browser title /wp-admin/options-general.php?page=scrolling-browser-title9602.0223.6926.75

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 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/scrolling-browser-title/scrolling-browser-title.php:244

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 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: title, plugin, browser, scrolling

scrolling-browser-title/scrolling-browser-title.php 92% from 13 tests

"Scrolling browser title" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)

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
No dangerous file extensions were detected259 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22515217
PO File1141542

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions6
▷ Named functions6100.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