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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.06ms] Passed 4 tests
This is a short check of server-side resources used by WP Color Browser
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.43 ▼4.11 |
Dashboard /wp-admin | 3.34 ▲0.00 | 43.65 ▼16.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.35 ▲0.29 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 90.69 ▼11.71 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.53 ▲2.96 |
Color Browser /wp-admin/themes.php?page=wp_color_browser | 3.24 | 41.03 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
WP Color Browser: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲78 | 14.48 ▲0.11 | 1.99 ▲0.18 | 42.37 ▲2.35 |
Dashboard /wp-admin | 2,207 ▲15 | 4.81 ▼0.13 | 109.04 ▲1.23 | 43.46 ▼0.63 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.02 ▼0.02 | 38.17 ▼7.55 | 36.48 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,541 ▲5 | 23.17 ▼0.14 | 638.96 ▲11.51 | 64.87 ▼0.57 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.20 ▲0.01 | 96.28 ▼1.64 | 42.08 ▼3.07 |
Color Browser /wp-admin/themes.php?page=wp_color_browser | 957 | 2.37 | 54.63 | 36.44 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please 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 add_action() in wp-content/plugins/wp-color-browser/includes/class-wpcb-settings.php:25
- > PHP Fatal error
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
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: google chrome tabs, color chrome, chrome, color browser, google chrome
wp-color-browser/wp-color-browser.php Passed 13 tests
The main PHP script in "WP Color Browser" version 1.0 is automatically included on every request by WordPress
50 characters long description:
Change the color of the browser on mobile devices.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected306 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 54 | 156 | 173 |
CSS | 1 | 0 | 0 | 86 |
JavaScript | 1 | 4 | 10 | 30 |
Markdown | 1 | 8 | 0 | 17 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 12 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.36MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/settings.png | 15.05KB | 7.46KB | ▼ 50.42% |
assets/images/icons.png | 2.17KB | 0.78KB | ▼ 64.03% |
assets/images/preview.png | 322.65KB | 158.50KB | ▼ 50.88% |
assets/images/status-bar-black.png | 13.47KB | 7.12KB | ▼ 47.11% |
assets/images/status-bar-translucent.png | 15.36KB | 7.83KB | ▼ 49.05% |