Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼12.86ms] Passed 4 tests
This is a short check of server-side resources used by LED-SITE-INDICATOR
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 33.49 ▼11.10 |
Dashboard /wp-admin | 3.42 ▲0.07 | 44.52 ▼16.18 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 44.93 ▼2.31 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.03 ▼21.84 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 40.69 ▲2.91 |
LED-SITE-INDICATOR /wp-admin/options-general.php?page=led-site-indicator-settings | 3.31 | 29.94 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
LED-SITE-INDICATOR: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.26 ▼0.47 | 1.56 ▼0.06 | 40.67 ▲1.64 |
Dashboard /wp-admin | 2,193 ▲16 | 5.51 ▼0.08 | 86.09 ▼1.12 | 39.09 ▼1.34 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.00 | 39.15 ▲1.01 | 37.91 ▲4.72 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.21 ▲0.09 | 669.73 ▼5.47 | 66.41 ▲11.90 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▼0.01 | 107.13 ▼3.66 | 47.63 ▼1.38 |
LED-SITE-INDICATOR /wp-admin/options-general.php?page=led-site-indicator-settings | 875 | 2.18 | 23.99 | 27.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
fsockopen(): unable to connect to 93.184.216.34:1883 (Connection timed out) in wp-content/plugins/led-site-indicator/lib/vendor/phpMQTT/phpMQTT.php on line 78
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add a description for screenshot #1 in led-site-indicator/assets to your readme.txt
led-site-indicator/led_site_indicator.php 85% from 13 tests
The entry point to "LED-SITE-INDICATOR" version 2.0.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("led-site-indicator.php" instead of "led_site_indicator.php")
- Domain Path: The domain path folder was not found ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin693 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 226 | 280 | 656 |
JavaScript | 1 | 11 | 5 | 23 |
JSON | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 51 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
5 PNG files occupy 0.34MB with 0.24MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 25.92KB | 5.73KB | ▼ 77.91% |
assets/banner-1544x500.png | 188.29KB | 61.56KB | ▼ 67.31% |
assets/screenshot-1.png | 30.96KB | 12.39KB | ▼ 59.97% |
assets/banner-772x250.png | 74.57KB | 25.12KB | ▼ 66.31% |
assets/icon-128x128.png | 23.96KB | 4.89KB | ▼ 79.59% |