84% wooyd

Code Review | WooYD

WordPress plugin WooYD scored84%from 54 tests.

About plugin

  • Plugin page: wooyd
  • Plugin version: 0.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2018
  • Latest release: Jan 28, 2018
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: casepress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,906 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.57ms] Passed 4 tests

Analyzing server-side resources used by WooYD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0935.46 ▼5.94
Dashboard /wp-admin3.39 ▲0.0942.24 ▼9.09
Posts /wp-admin/edit.php3.51 ▲0.1551.31 ▲2.00
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.62 ▼5.25
Media Library /wp-admin/upload.php3.32 ▲0.0934.63 ▲3.05
Яндекс Доставка /wp-admin/options-general.php?page=yandex_delivery_wpc3.2830.24

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

WooYD: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6813.22 ▼1.161.51 ▼0.2141.96 ▼3.16
Dashboard /wp-admin2,213 ▲285.88 ▲0.00112.79 ▲2.0442.44 ▼3.25
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0438.34 ▲4.1534.29 ▼3.02
Add New Post /wp-admin/post-new.php1,545 ▲1718.35 ▼4.73660.10 ▼29.6656.20 ▲4.00
Media Library /wp-admin/upload.php1,386 ▼54.24 ▲0.1098.09 ▲0.2243.84 ▼0.12
Яндекс Доставка /wp-admin/options-general.php?page=yandex_delivery_wpc8552.0224.6630.47

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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: Call to undefined function add_action() in wp-content/plugins/wooyd/inc/class-widget-product.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wooyd/inc/class-widget-geo.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooyd/inc/class-widget-track.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wooyd/inc/class-widget-info.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please describe screenshot #3 in wooyd/assets to your readme.txt
Please take inspiration from this readme.txt

wooyd/wooyd.php Passed 13 tests

This is the main PHP file of "WooYD" version 0.8.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Интеграция Яндекс Доставка и WooCommerce

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
Everything looks great! No dangerous files found in this plugin474 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP8122106461
Markdown111013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.43
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin