88% mobile-address-bar-changer

Code Review | Mobile Address Bar Changer

WordPress plugin Mobile Address Bar Changer scored 88% from 54 tests.

About plugin

  • Plugin page: mobile-address-ba...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.4
  • WordPress version: 5.9.2
  • First release: May 28, 2016
  • Latest release: Mar 26, 2018
  • Number of updates: 7
  • Update frequency: every 95.9 days
  • Top authors: anshuln90 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 8,741 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼284.51ms] Passed 4 tests

Server-side resources used by Mobile Address Bar Changer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0451.64 ▲5.07
Dashboard /wp-admin3.42 ▲0.0137.36 ▲2.34
Posts /wp-admin/edit.php3.65 ▲0.0136.88 ▲0.03
Add New Post /wp-admin/post-new.php6.90 ▼0.07102.17 ▼1,136.45
Media Library /wp-admin/upload.php3.31 ▲0.0023.21 ▼3.95
Mobile Address Bar Chnage /wp-admin/options-general.php?page=mobile_address_bar_chnage3.2522.19

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Mobile Address Bar Changer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,811 ▲8516.17 ▲0.876.07 ▼0.262.57 ▲0.38
Dashboard /wp-admin2,914 ▲536.95 ▲0.81121.53 ▼14.85157.43 ▼3.11
Posts /wp-admin/edit.php2,716 ▲313.53 ▲0.3165.01 ▲1.18151.50 ▲8.34
Add New Post /wp-admin/post-new.php1,683 ▲2217.68 ▲1.21370.99 ▼62.43168.41 ▲13.69
Media Library /wp-admin/upload.php1,718 ▲206.01 ▲0.47115.56 ▼35.12184.69 ▼10.80
Mobile Address Bar Chnage /wp-admin/options-general.php?page=mobile_address_bar_chnage1,2193.0769.32125.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=mobile_address_bar_chnage
    • > Notice in wp-content/plugins/mobile-address-bar-changer/mobile-address-bar-changer.php+81
    Undefined variable: msg
    • > GET request to /wp-admin/options-general.php?page=mobile_address_bar_chnage
    • > Notice in wp-content/plugins/mobile-address-bar-changer/mobile-address-bar-changer.php+96
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobile-address-bar-changer/mobile-address-bar-changer.php:35

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
Please take inspiration from this readme.txt

mobile-address-bar-changer/mobile-address-bar-changer.php Passed 13 tests

Analyzing the main PHP file in "Mobile Address Bar Changer" version 3.0
82 characters long description:
A WordPress plugin to change Mobile Browser Address Bar Changer on Android Mobile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin71 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1153366
JavaScript1015

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin