Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.57ms] Passed 4 tests
An overview of server-side resources used by WordHue
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 41.80 ▲4.65 |
Dashboard /wp-admin | 3.47 ▲0.17 | 50.83 ▼0.60 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 53.61 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 88.45 ▼16.70 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.74 ▲2.23 |
Philips hue /wp-admin/options-general.php?page=philips_hue | 3.36 | 31.78 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_codex_nas_lighting_lights_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WordHue
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲55 | 13.98 ▼0.54 | 2.82 ▲1.15 | 43.14 ▲1.02 |
Dashboard /wp-admin | 2,202 ▲25 | 5.66 ▲0.13 | 99.02 ▲3.30 | 44.75 ▲0.64 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.01 | 38.72 ▼3.13 | 35.06 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.08 ▼0.05 | 658.69 ▼30.80 | 58.09 ▼10.17 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.08 | 105.78 ▼7.27 | 43.82 ▼3.47 |
Philips hue /wp-admin/options-general.php?page=philips_hue | 836 | 1.99 | 29.02 | 33.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_codex_nas_lighting_lights_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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wordhue/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordhue/includes/lighting-lights.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordhue/includes/lighting-sensors.php:63
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wordhue/includes/page.php:130
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: philips, philips hue, hue switch, hue sensor, hue lights...
wordhue/wordhue.php 92% from 13 tests
The primary PHP file in "WordHue" version 1.5.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Success! There were no dangerous files found in this plugin828 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 179 | 62 | 790 |
XML | 1 | 0 | 1 | 18 |
SVG | 1 | 0 | 1 | 13 |
CSS | 1 | 0 | 1 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 29 | |
▷ Named functions | 29 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/dimmer-switch.png | 0.27KB | 0.28KB | 0.00% |
images/dimmer-light.png | 0.59KB | 0.62KB | 0.00% |
images/power-plug.png | 2.18KB | 1.05KB | ▼ 51.72% |