83% yml-turbo-pages-for-woocommerce

Code Review | YML Turbo Pages for WooCommerce

WordPress plugin YML Turbo Pages for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: yml-turbo-pages-f...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: WP 4.1.0-5.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2019
  • Latest release: Oct 13, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: webgleb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,071 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.00ms] Passed 4 tests

An overview of server-side resources used by YML Turbo Pages for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.29 ▼0.18
Dashboard /wp-admin3.34 ▲0.0347.07 ▼2.10
Posts /wp-admin/edit.php3.39 ▲0.0349.03 ▲0.59
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.68 ▼9.14
Media Library /wp-admin/upload.php3.26 ▲0.0334.42 ▼0.58

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.25KB) outside of "wp-content/plugins/yml-turbo-pages-for-woocommerce/" and "wp-content/uploads/"
    • (new file) yandex-yml.xml
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for YML Turbo Pages for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲6914.35 ▲0.072.00 ▲0.1744.89 ▲2.03
Dashboard /wp-admin2,214 ▲375.55 ▼0.1288.81 ▲0.8944.72 ▲2.81
Posts /wp-admin/edit.php2,116 ▲191.98 ▼0.0536.94 ▼1.1232.97 ▼5.13
Add New Post /wp-admin/post-new.php1,550 ▲2218.16 ▼4.87651.86 ▲7.7362.62 ▲10.77
Media Library /wp-admin/upload.php1,419 ▲194.18 ▼0.0097.40 ▼11.7639.80 ▼11.35

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/yml-turbo-pages-for-woocommerce/yml-export-for-turbo-pages.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: yandex, woocommerce, woo commerce, yml, turbo pages...

yml-turbo-pages-for-woocommerce/yml-export-for-turbo-pages.php 77% from 13 tests

Analyzing the main PHP file in "YML Turbo Pages for WooCommerce" version 1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yml-turbo-pages-for-woocommerce.php" instead of "yml-export-for-turbo-pages.php")
  • Requires at least: Required version number should only contain digits separated by dots (ex. "7.0" instead of "WP 4.1.0")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin492 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111670313
PO File25610179

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.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 files were detected