90% color-mobile-browser-address-bar

Code Review | Color Mobile Browser Address Bar

WordPress plugin Color Mobile Browser Address Bar scored90%from 54 tests.

About plugin

  • Plugin page: color-mobile-brow...
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Jul 31, 2017
  • Latest release: Apr 7, 2021
  • Number of updates: 33
  • Update frequency: every 40.8 days
  • Top authors: webbteche (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /14,571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.35ms] Passed 4 tests

An overview of server-side resources used by Color Mobile Browser Address Bar
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.75 ▲1.36
Dashboard /wp-admin3.32 ▼0.0246.35 ▼11.34
Posts /wp-admin/edit.php3.37 ▲0.0143.85 ▼2.78
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.69 ▼12.64
Media Library /wp-admin/upload.php3.24 ▲0.0136.77 ▲1.65
Mobile Browser Address Bar Color /wp-admin/themes.php?page=color-mobile-browser-address-bar3.2137.38

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Color Mobile Browser Address Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.37 ▼0.011.89 ▲0.1845.90 ▲5.39
Dashboard /wp-admin2,213 ▲245.83 ▼0.07106.99 ▲0.7142.23 ▼2.98
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0236.57 ▼4.3132.39 ▼4.58
Add New Post /wp-admin/post-new.php1,545 ▲818.36 ▲0.11616.49 ▼8.4254.72 ▼5.57
Media Library /wp-admin/upload.php1,386 ▼24.30 ▲0.0898.39 ▲0.4543.18 ▼2.60
Mobile Browser Address Bar Color /wp-admin/themes.php?page=color-mobile-browser-address-bar9372.3840.1024.07

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
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 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: mobile address bar color, theme color on address bar, theme color, meta tag for theme color

color-mobile-browser-address-bar/color-mobile-browser-address-bar.php Passed 13 tests

"Color Mobile Browser Address Bar" version 1.0.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
90 characters long description:
A WordPress plugin that lets you add a custom color to the address bar of mobile browsers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin79 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2212274
JavaScript1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin