Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼146.64ms] Passed 4 tests
This is a short check of server-side resources used by Rainbow Address Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 38.53 ▲4.65 |
Dashboard /wp-admin | 3.14 ▲0.08 | 46.21 ▼3.23 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 49.42 ▲0.68 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.06 | 91.69 ▼588.64 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 34.03 ▲6.84 |
Rainbow Address Bar /wp-admin/themes.php?page=rainbow-address-bar | 3.05 | 26.01 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options |
---|
rab-switch |
rab-amp-switch |
Browser metrics Passed 4 tests
An overview of browser requirements for Rainbow Address Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,730 ▲134 | 16.07 ▲0.09 | 13.32 ▲3.57 | 52.86 ▲7.51 |
Dashboard /wp-admin | 2,997 ▲63 | 6.63 ▲0.73 | 131.23 ▼19.53 | 108.38 ▲1.03 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 3.14 ▲0.43 | 69.45 ▼8.35 | 97.76 ▲2.10 |
Add New Post /wp-admin/post-new.php | 1,645 ▼38 | 22.10 ▲3.72 | 292.88 ▼145.36 | 102.02 ▼5.97 |
Media Library /wp-admin/upload.php | 1,835 ▲28 | 5.38 ▲0.34 | 130.62 ▼41.09 | 117.29 ▼1.01 |
Rainbow Address Bar /wp-admin/themes.php?page=rainbow-address-bar | 1,877 | 3.34 | 99.06 | 70.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/rainbow-address-bar/class-rainbow-address-bar.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
rainbow-address-bar/class-rainbow-address-bar.php 77% from 13 tests
This is the main PHP file of "Rainbow Address Bar" version 1.0.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rainbow-address-bar.php" instead of "class-rainbow-address-bar.php")
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
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 detected423 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 45 | 155 | 231 |
CSS | 1 | 21 | 0 | 118 |
Markdown | 1 | 23 | 0 | 58 |
JavaScript | 1 | 3 | 2 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin