Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.25ms] Passed 4 tests
This is a short check of server-side resources used by Webcom Operator Status
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.95 ▼0.75 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.88 ▼19.10 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.33 ▼5.32 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.60 ▼7.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.71 ▲8.71 |
WEBCOM TLC - Stato degli Operatori /wp-admin/options-general.php?page=webcom-operator-status-settings | 3.25 | 32.60 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Webcom Operator Status: 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,822 ▲75 | 14.27 ▲0.10 | 1.89 ▲0.29 | 41.81 ▼1.09 |
Dashboard /wp-admin | 2,199 ▲24 | 5.59 ▼0.10 | 92.41 ▼10.05 | 40.19 ▼0.03 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 38.82 ▼1.84 | 35.67 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,698 ▲172 | 22.01 ▼1.21 | 619.20 ▼79.38 | 43.72 ▼15.56 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.09 | 98.86 ▲3.03 | 41.62 ▲0.16 |
WEBCOM TLC - Stato degli Operatori /wp-admin/options-general.php?page=webcom-operator-status-settings | 939 | 2.00 | 22.88 | 26.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/webcom-operator-status/webcom-plugin.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
webcom-operator-status/webcom-plugin.php 85% from 13 tests
The main PHP script in "Webcom Operator Status" version 0.4.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("webcom-operator-status.php" instead of "webcom-plugin.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin404 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 30 | 228 |
JavaScript | 2 | 0 | 0 | 147 |
JSON | 1 | 0 | 0 | 17 |
Markdown | 1 | 6 | 0 | 10 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
4 compressed PNG files occupy 0.19MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/OCCUPATO.c63d5b41.png | 41.63KB | 40.05KB | ▼ 3.80% |
build/images/LOGOUT.99a185f5.png | 66.89KB | 41.67KB | ▼ 37.71% |
build/images/LIBERO.805064eb.png | 40.83KB | 41.85KB | 0.00% |
build/images/PAUSA.10c5965f.png | 40.79KB | 41.85KB | 0.00% |