89% xml-for-avito

Code Review | XML for Avito

WordPress plugin XML for Avito scored89%from 54 tests.

About plugin

  • Plugin page: xml-for-avito
  • Plugin version: 2.1.13
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 31, 2020
  • Latest release: Dec 1, 2023
  • Number of updates: 96
  • Update frequency: every 12.7 days
  • Top authors: icopydoc (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /8,994 total downloads

Benchmarks

Plugin footprint 82% 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.02MB] [CPU: ▼3.42ms] Passed 4 tests

Analyzing server-side resources used by XML for Avito
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.80 ▼2.99
Dashboard /wp-admin3.32 ▲0.0247.87 ▼2.97
Posts /wp-admin/edit.php3.37 ▲0.0250.94 ▲0.13
Add New Post /wp-admin/post-new.php5.90 ▲0.0292.42 ▼6.14
Media Library /wp-admin/upload.php3.24 ▲0.0235.22 ▼1.59

Server storage [IO: ▲54.32MB] [DB: ▲0.00MB] 33% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/xml-for-avito/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/xml-for-avito/classes/generation/traits/common/trait-xfavi-t-common-\321\201ontact-info.php"
  • The filesystem usage should be lower than 25MB (currently using 54.32MB)
Filesystem: 139 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for XML for Avito
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3314.08 ▼0.261.64 ▲0.0228.45 ▼19.26
Dashboard /wp-admin2,197 ▲205.63 ▼0.0490.32 ▲3.4741.76 ▲2.73
Posts /wp-admin/edit.php2,105 ▲51.94 ▼0.0739.22 ▼1.6539.31 ▲4.44
Add New Post /wp-admin/post-new.php1,536 ▲1022.82 ▼0.33734.52 ▼85.5650.13 ▼17.28
Media Library /wp-admin/upload.php1,402 ▲24.22 ▲0.0295.70 ▼2.1342.24 ▲2.06

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png) image missing
Please take inspiration from this readme.txt

xml-for-avito/xml-for-avito.php Passed 13 tests

The primary PHP file in "XML for Avito" version 2.1.13 is used by WordPress to initiate all plugin functionality
99 characters long description:
Подключите свой магазин к Avito чтобы увеличить продажи!

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
Success! There were no dangerous files found in this plugin1,227,716 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
XML4001,216,362
PHP1269984,66010,792
PO File15831,155513
CSS20132
JavaScript30217

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity8.55
▷ Minimum class complexity1.00
▷ Maximum class complexity68.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits86
Classes22
▷ Abstract classes14.55%
▷ Concrete classes2195.45%
▷ Final classes733.33%
Methods317
▷ Static methods185.68%
▷ Public methods21567.82%
▷ Protected methods175.36%
▷ Private methods8526.81%
Functions55
▷ Named functions4378.18%
▷ Anonymous functions1221.82%
Constants15
▷ Global constants1173.33%
▷ Class constants426.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png95.24KB36.04KB▼ 62.16%