Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.57MB] [CPU: ▲0.86ms] 75% from 4 tests
Analyzing server-side resources used by XML for O.Yandex (Яндекс Объявления)
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 940.45ms on /wp-admin/admin.php?page=xfoyextensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.44 | 37.88 ▲0.47 |
Dashboard /wp-admin | 3.92 ▲0.61 | 49.62 ▼3.61 |
Posts /wp-admin/edit.php | 4.04 ▲0.67 | 52.34 ▲7.77 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 95.24 ▼1.19 |
Media Library /wp-admin/upload.php | 3.85 ▲0.61 | 42.35 ▲9.23 |
Экспорт на Яндекс Объявления /wp-admin/admin.php?page=xfoyexport | 3.81 | 36.07 |
Страница отладки /wp-admin/admin.php?page=xfoydebug | 3.83 | 496.35 |
Расширения /wp-admin/admin.php?page=xfoyextensions | 3.87 | 940.45 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 14 new options
New WordPress options |
---|
xfoy_keeplogs |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
xfoy_enable_five_min |
can_compress_scripts |
xfoy_settings_arr |
xfoy_disable_notices |
xfoy_registered_feeds_arr |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
XML for O.Yandex (Яндекс Объявления): an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.39 ▼0.14 | 1.67 ▼0.01 | 39.11 ▼4.57 |
Dashboard /wp-admin | 2,236 ▲65 | 5.63 ▼0.03 | 89.95 ▼10.76 | 45.82 ▲0.57 |
Posts /wp-admin/edit.php | 2,144 ▲44 | 2.05 ▲0.09 | 40.18 ▲4.97 | 38.41 ▲5.74 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 18.25 ▼4.83 | 607.89 ▼71.17 | 63.60 ▲7.30 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.20 ▲0.04 | 95.58 ▲0.99 | 42.79 ▼4.22 |
Экспорт на Яндекс Объявления /wp-admin/admin.php?page=xfoyexport | 1,793 | 1.81 | 25.56 | 38.03 |
Страница отладки /wp-admin/admin.php?page=xfoydebug | 941 | 1.12 | 6.30 | 24.00 |
Расширения /wp-admin/admin.php?page=xfoyextensions | 892 | 2.17 | 25.79 | 40.71 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=xfoydebug
- > Error in wp-content/plugins/xml-for-o-yandex/functions.php+983
Uncaught Error: Call to undefined function wc_get_attribute_taxonomies() in wp-content/plugins/xml-for-o-yandex/functions.php:983
Stack trace:
#0 wp-content/plugins/xml-for-o-yandex/debug.php(146): xfoy_possible_problems_list()
#1 wp-includes/class-wp-hook.php(310): xfoy_debug_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 {main}
thrown
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/xml-for-o-yandex/includes/class_wp_list_table.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues 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
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.png)
xml-for-o-yandex/xml-for-o-yandex.php Passed 13 tests
"XML for O.Yandex (Яндекс Объявления)" version 2.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
129 characters long description:
Подключите свой магазин к Яндекс Объявлениям чтобы увеличить продажи!
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
Everything looks great! No dangerous files found in this plugin6,534 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
XML | 1 | 0 | 0 | 3,516 |
PHP | 8 | 173 | 440 | 2,579 |
PO File | 1 | 534 | 1,094 | 408 |
CSS | 1 | 0 | 1 | 31 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 12 | 37.50% |
▷ Public methods | 31 | 96.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.12% |
Functions | 35 | |
▷ Named functions | 34 | 97.14% |
▷ Anonymous functions | 1 | 2.86% |
Constants | 9 | |
▷ Global constants | 9 | 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
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 72.26KB | 28.10KB | ▼ 61.11% |