84% mobile-address-bar-colorize

Code Review | Mobile Address Bar Colorize

WordPress plugin Mobile Address Bar Colorize scored84%from 54 tests.

About plugin

  • Plugin page: mobile-address-ba...
  • Plugin version: 1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2020
  • Latest release: Jan 22, 2023
  • Number of updates: 10
  • Update frequency: every 106.8 days
  • Top authors: themeythemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /740 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.44ms] Passed 4 tests

An overview of server-side resources used by Mobile Address Bar Colorize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.70 ▲2.38
Dashboard /wp-admin3.32 ▲0.0252.87 ▼3.78
Posts /wp-admin/edit.php3.37 ▲0.0250.21 ▼6.52
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.14 ▼9.67
Media Library /wp-admin/upload.php3.25 ▲0.0239.45 ▲2.23
Address Bar Colorize /wp-admin/options-general.php?page=address-bar-colorize-lwp3.2132.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Mobile Address Bar Colorize
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.091.88 ▼0.2744.52 ▼5.00
Dashboard /wp-admin2,199 ▲195.62 ▼0.0585.31 ▼5.7238.59 ▼7.76
Posts /wp-admin/edit.php2,104 ▲42.05 ▼0.0136.50 ▼2.9532.01 ▼3.72
Add New Post /wp-admin/post-new.php1,548 ▲323.03 ▼0.48715.13 ▲4.4154.58 ▼10.02
Media Library /wp-admin/upload.php1,407 ▲74.30 ▲0.04113.14 ▲9.1947.60 ▼2.98
Address Bar Colorize /wp-admin/options-general.php?page=address-bar-colorize-lwp9422.3641.3125.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/mobile-address-bar-colorize/address-bar-colorize.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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: You can look at the official readme.txt

mobile-address-bar-colorize/address-bar-colorize.php 92% from 13 tests

"Mobile Address Bar Colorize" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mobile-address-bar-colorize.php" instead of "address-bar-colorize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1322982

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin