84% addressbar-meta-theme-color

Code Review | Addressbar Meta Theme Color

WordPress plugin Addressbar Meta Theme Color scored84%from 54 tests.

About plugin

  • Plugin page: addressbar-meta-t...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Aug 18, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: williampatton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Addressbar Meta Theme Color
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.23 ▼3.73
Dashboard /wp-admin3.31 ▲0.0150.67 ▼2.78
Posts /wp-admin/edit.php3.37 ▲0.0148.73 ▼3.50
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.37 ▼10.07
Media Library /wp-admin/upload.php3.24 ▲0.0131.62 ▼2.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Addressbar Meta Theme Color
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.19 ▼1.184.50 ▲2.8842.80 ▼4.47
Dashboard /wp-admin2,221 ▲154.78 ▼0.10102.27 ▼4.1442.27 ▲2.89
Posts /wp-admin/edit.php2,100 ▼31.99 ▼0.0334.73 ▼8.1332.03 ▼6.03
Add New Post /wp-admin/post-new.php1,526 ▼2223.55 ▲0.17665.06 ▲34.7646.90 ▼3.27
Media Library /wp-admin/upload.php1,397 ▼64.24 ▲0.04101.84 ▼1.4647.01 ▲2.26

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/addressbar-meta-theme-color/addressbar-meta-theme-color.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
There were no plugin tags found

addressbar-meta-theme-color/addressbar-meta-theme-color.php Passed 13 tests

The main file in "Addressbar Meta Theme Color" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
This plugin allows to to set a color for the addressbar in chrome and opera mobile.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin57 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2155157

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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