84% pp-lv-feed-for-woocommerce

Code Review | PP.lv feed for WooCommerce

WordPress plugin PP.lv feed for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: pp-lv-feed-for-wo...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 20, 2023
  • Latest release: Sep 28, 2023
  • Number of updates: 8
  • Update frequency: every 13.0 days
  • Top authors: hotdonkey (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /307 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.69MB] [CPU: ▼15.72ms] Passed 4 tests

An overview of server-side resources used by PP.lv feed for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0140.52 ▲0.49
Dashboard /wp-admin3.31 ▲0.0143.23 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0149.19 ▲3.93
Add New Post /wp-admin/post-new.php3.12 ▼2.7634.28 ▼58.57
Media Library /wp-admin/upload.php3.23 ▲0.0034.93 ▼0.78

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

PP.lv feed for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.161.70 ▼0.1543.15 ▼6.17
Dashboard /wp-admin2,209 ▲244.85 ▼0.28104.82 ▲4.6038.95 ▼4.37
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0335.65 ▲1.7031.66 ▼1.04
Add New Post /wp-admin/post-new.php1,514 ▼2317.96 ▼5.11670.60 ▼10.0753.17 ▲0.79
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.0296.03 ▼15.8542.49 ▼3.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/pp-lv-feed-for-woocommerce/ppfeed.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: products, export, woocommerce

pp-lv-feed-for-woocommerce/ppfeed.php 92% from 13 tests

The main PHP script in "PP.lv feed for WooCommerce" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pp-lv-feed-for-woocommerce.php" instead of "ppfeed.php")

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 plugin173 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23010171
Markdown1102

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods550.00%
▷ Protected methods00.00%
▷ Private methods550.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin