84% winddoc

Code Review | WindDoc

WordPress plugin WindDoc scored84%from 54 tests.

About plugin

  • Plugin page: winddoc
  • Plugin version: 1.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2023
  • Latest release: Oct 27, 2023
  • Number of updates: 75
  • Update frequency: every 4.0 days
  • Top authors: morriluca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /283 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.36 ▼2.98
Dashboard /wp-admin3.35 ▲0.0545.35 ▼0.26
Posts /wp-admin/edit.php3.40 ▲0.0444.61 ▲0.25
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.09 ▼24.05
Media Library /wp-admin/upload.php3.27 ▲0.0437.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.52 ▼1.039.18 ▲7.6139.90 ▼1.98
Dashboard /wp-admin2,213 ▲385.71 ▲0.1078.92 ▼21.6268.15 ▲25.08
Posts /wp-admin/edit.php2,118 ▲182.03 ▲0.0137.54 ▼3.2833.92 ▼2.39
Add New Post /wp-admin/post-new.php1,693 ▲15621.95 ▲3.90748.51 ▲95.7453.44 ▼8.14
Media Library /wp-admin/upload.php1,412 ▲94.17 ▼0.0698.63 ▼8.5376.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

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
You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP5537791,741
CSS264491,349
JavaScript2101162334

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 code0.49
Average class complexity55.33
▷ Minimum class complexity5.00
▷ Maximum class complexity117.00
Average method complexity4.70
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions2066.67%
▷ Anonymous functions1033.33%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
template/utility/images/ui-bg_glass_75_dadada_1x400.png0.09KB0.16KB0.00%
template/utility/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
template/utility/images/ui-icons_454545_256x240.png3.61KB4.11KB0.00%