89% yml-for-yandex-market

Code Review | YML for Yandex Market

WordPress plugin YML for Yandex Market scored89%from 54 tests.

About plugin

  • Plugin page: yml-for-yandex-ma...
  • Plugin version: 4.1.3
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: May 18, 2017
  • Latest release: Nov 30, 2023
  • Number of updates: 308
  • Update frequency: every 7.8 days
  • Top authors: icopydoc (100%)

Code review

54 tests

User reviews

66 reviews

Install metrics

10,000+ active /418,067 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.01ms] Passed 4 tests

This is a short check of server-side resources used by YML for Yandex Market
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.94 ▼6.02
Dashboard /wp-admin3.31 ▼0.0345.17 ▼15.51
Posts /wp-admin/edit.php3.36 ▲0.0149.00 ▼7.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.95 ▼11.44
Media Library /wp-admin/upload.php3.24 ▲0.0133.91 ▲2.11

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 176 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for YML for Yandex Market
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.72 ▲0.501.70 ▼0.1429.77 ▼13.28
Dashboard /wp-admin2,203 ▲295.61 ▼0.0291.43 ▼5.4543.05 ▼2.77
Posts /wp-admin/edit.php2,105 ▲22.00 ▲0.0439.66 ▼2.9040.50 ▲5.70
Add New Post /wp-admin/post-new.php1,530 ▲423.71 ▲0.70647.76 ▲46.6660.91 ▲7.82
Media Library /wp-admin/upload.php1,405 ▲24.17 ▼0.06104.23 ▲6.5247.33 ▲2.78

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% 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: Screenshot #1 (screenshot-1.png) image not found
You can look at the official readme.txt

yml-for-yandex-market/yml-for-yandex-market.php 92% from 13 tests

The main file in "YML for Yandex Market" v. 4.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected16,557 lines of code in 164 files:
LanguageFilesBlank linesComment linesLines of code
PHP1611,1595,65614,161
PO File21,1722,2122,389
CSS1017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.82
▷ Minimum class complexity1.00
▷ Maximum class complexity77.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits115
Classes27
▷ Abstract classes13.70%
▷ Concrete classes2696.30%
▷ Final classes830.77%
Methods374
▷ Static methods164.28%
▷ Public methods26069.52%
▷ Protected methods215.61%
▷ Private methods9324.87%
Functions52
▷ Named functions4382.69%
▷ Anonymous functions917.31%
Constants25
▷ Global constants2080.00%
▷ Class constants520.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png350.43KB133.32KB▼ 61.96%