Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.76ms] Passed 4 tests
A check of server-side resources used by WindDoc
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 35.36 ▼2.98 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.35 ▼0.26 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.61 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.09 ▼24.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.72 ▲2.49 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
winddoc_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for WindDoc
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.52 ▼1.03 | 9.18 ▲7.61 | 39.90 ▼1.98 |
Dashboard /wp-admin | 2,213 ▲38 | 5.71 ▲0.10 | 78.92 ▼21.62 | 68.15 ▲25.08 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.03 ▲0.01 | 37.54 ▼3.28 | 33.92 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,693 ▲156 | 21.95 ▲3.90 | 748.51 ▲95.74 | 53.44 ▼8.14 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.17 ▼0.06 | 98.63 ▼8.53 | 76.79 ▲29.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- winddoc_db_version
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/winddoc/template/calendario_prodotto.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/winddoc/winddoc.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/winddoc/src/WindDoc_Action.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #0, #1, #2, #4, #5, #6 in winddoc/assets to your readme.txt
winddoc/winddoc.php Passed 13 tests
The main PHP script in "WindDoc" version 1.7 is automatically included on every request by WordPress
33 characters long description:
Integrazione con Software WindDoc
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
Everything looks great! No dangerous files found in this plugin3,424 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 537 | 79 | 1,741 |
CSS | 2 | 64 | 49 | 1,349 |
JavaScript | 2 | 101 | 162 | 334 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 55.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 4.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 20 | 66.67% |
▷ Anonymous functions | 10 | 33.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
template/utility/images/ui-bg_glass_75_dadada_1x400.png | 0.09KB | 0.16KB | 0.00% |
template/utility/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
template/utility/images/ui-icons_454545_256x240.png | 3.61KB | 4.11KB | 0.00% |