Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼300.30ms] Passed 4 tests
Server-side resources used by Addressbar Theme Color
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▼0.03 | 51.35 ▲1.20 |
Dashboard /wp-admin | 3.44 ▲0.04 | 31.82 ▼2.91 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 35.23 ▼3.60 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.07 | 90.16 ▼1,194.16 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 25.23 ▼0.51 |
Addressbar Theme Color /wp-admin/themes.php?page=addressbar-theme-color | 3.29 | 22.70 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Addressbar Theme Color
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲42 | 16.14 ▲0.48 | 5.75 ▼0.48 | 2.27 ▼0.69 |
Dashboard /wp-admin | 2,893 ▲32 | 6.15 ▼0.03 | 117.24 ▼16.13 | 155.57 ▼10.54 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▼0.00 | 62.78 ▼2.63 | 140.44 ▼3.28 |
Add New Post /wp-admin/post-new.php | 1,763 ▲73 | 22.74 ▲1.08 | 418.98 ▼19.44 | 159.32 ▲3.30 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.51 ▼0.03 | 139.42 ▼6.18 | 189.35 ▲10.01 |
Addressbar Theme Color /wp-admin/themes.php?page=addressbar-theme-color | 998 | 2.42 | 53.82 | 126.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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)
Everything seems fine, however this is by no means 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
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addressbar-theme-color/options.php:118
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/addressbar-theme-color/options.php:118
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: theme, header, html5, mobile
addressbar-theme-color/addressbar_theme_color.php 85% from 13 tests
This is the main PHP file of "Addressbar Theme Color" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("addressbar-theme-color.php" instead of "addressbar_theme_color.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
Everything looks great! No dangerous files found in this plugin105 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 24 | 47 | 94 |
Markdown | 1 | 3 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin