66% my-feed

Code Review | AW Feed Manager For WooCommerce Product

WordPress plugin AW Feed Manager For WooCommerce Product scored66%from 54 tests.

About plugin

  • Plugin page: my-feed
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 10, 2023
  • Latest release: Mar 27, 2023
  • Number of updates: 7
  • Update frequency: every 2.4 days
  • Top authors: devsadonwebs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 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
Installer ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼22.90ms] Passed 4 tests

Analyzing server-side resources used by AW Feed Manager For WooCommerce Product
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.62 ▲1.03
Dashboard /wp-admin3.14 ▼0.1725.81 ▼28.49
Posts /wp-admin/edit.php3.28 ▼0.0832.03 ▼16.74
Add New Post /wp-admin/post-new.php5.52 ▼0.3770.69 ▼41.73
Media Library /wp-admin/upload.php3.22 ▼0.0030.55 ▼4.64
Add New /wp-admin/admin.php?page=new-feed3.1225.64
My Feed /wp-admin/admin.php?page=my-feed3.1229.81

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

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

Browser metrics Passed 4 tests

AW Feed Manager For WooCommerce Product: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲4714.29 ▼0.091.89 ▼0.1756.04 ▲8.77
Dashboard /wp-admin2,234 ▲575.71 ▲0.0690.94 ▼7.1043.25 ▼21.62
Posts /wp-admin/edit.php2,136 ▲362.02 ▲0.0137.46 ▼4.4434.23 ▼8.08
Add New Post /wp-admin/post-new.php1,557 ▲2923.32 ▲0.18693.57 ▲39.3057.15 ▲1.93
Media Library /wp-admin/upload.php1,430 ▲304.28 ▲0.10103.78 ▼3.7145.59 ▲2.93
Add New /wp-admin/admin.php?page=new-feed1,9512.2024.0124.73
My Feed /wp-admin/admin.php?page=my-feed1,2682.0225.9278.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-feed
    • > Notice in wp-content/plugins/my-feed/my-feed.php+79
    Undefined variable: ver_style
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=my-feed
    • > Notice in wp-content/plugins/my-feed/my-feed.php+80
    Undefined variable: deep

SRP 0% 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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/my-feed/my-feed.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_head() in wp-content/plugins/my-feed/admin/home.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/my-feed/admin/new-feed.php:82

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=new-feed
    • > Javascript (severe) in unknown
    /wp-content/plugins/my-feed/admin/js/pagination.js?ver=1 72:53 Uncaught TypeError: Cannot read properties of null (reading 'rows')
    • > GET request to /wp-admin/admin.php?page=my-feed
    • > Javascript (severe) in unknown
    /wp-content/plugins/my-feed/admin/js/pagination.js?ver=1 33:32 Uncaught TypeError: Cannot set properties of null (setting 'className')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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: No descriptions were found for these screenshots #1, #2 in my-feed/assets to your readme.txt
  • Contributors: Contributors not specified
The official readme.txt might help

my-feed/my-feed.php Passed 13 tests

The main PHP script in "AW Feed Manager For WooCommerce Product" version 1.0.3 is automatically included on every request by WordPress
70 characters long description:
This is feed plugin for upload product feed to google merchant center.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin642 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP511592479
JavaScript2318110
CSS36653

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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 functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin