99% mobile-browser-tab-color

Code Review | Mobile Browser Tab Color

WordPress plugin Mobile Browser Tab Color scored 99% from 54 tests.

About plugin

  • Plugin page: mobile-browser-ta...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.7
  • WordPress version: 5.8.1
  • First release: Aug 18, 2017
  • Latest release: Aug 18, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mbacklas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 428 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Mobile Browser Tab Color
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0125.18 ▲5.50
Dashboard /wp-admin3.08 ▲0.0132.84 ▼9.35
Posts /wp-admin/edit.php3.13 ▲0.0232.38 ▲0.44
Add New Post /wp-admin/post-new.php5.44 ▼0.0070.28 ▼595.26
Media Library /wp-admin/upload.php3.02 ▲0.0222.25 ▼0.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Mobile Browser Tab Color: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,699 ▲9816.32 ▲0.264.94 ▲0.0477.18 ▲1.99
Dashboard /wp-admin2,964 ▲656.46 ▲0.21117.94 ▼12.29169.55 ▼1.56
Posts /wp-admin/edit.php2,774 ▲343.31 ▲0.0866.91 ▲0.87153.12 ▲10.87
Add New Post /wp-admin/post-new.php2,511 ▼1,23015.52 ▼3.21388.55 ▼52.79160.86 ▼7.71
Media Library /wp-admin/upload.php1,782 ▲305.83 ▲0.32128.66 ▼18.49189.00 ▲2.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Screenshot #1 (N/A) image missing
Please take inspiration from this readme.txt

mobile-browser-tab-color/mbtc.php 92% from 13 tests

The principal PHP file in "Mobile Browser Tab Color" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobile-browser-tab-color.php" instead of "mbtc.php")

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
Success! There were no dangerous files found in this plugin2 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin