89% shoppingfeeder

Code Review | ShoppingFeeder

WordPress plugin ShoppingFeeder scored89%from 54 tests.

About plugin

  • Plugin page: shoppingfeeder
  • Plugin version: 1.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.3
  • WordPress version: 6.3.1
  • First release: May 16, 2015
  • Latest release: Oct 21, 2022
  • Number of updates: 93
  • Update frequency: every 29.2 days
  • Top authors: shoppingfeeder (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

400+ active /11,688 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▼5.11ms] Passed 4 tests

An overview of server-side resources used by ShoppingFeeder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.01 ▲0.42
Dashboard /wp-admin3.56 ▲0.2541.72 ▼7.54
Posts /wp-admin/edit.php3.67 ▲0.3146.19 ▼3.74
Add New Post /wp-admin/post-new.php6.14 ▲0.2581.54 ▼9.56
Media Library /wp-admin/upload.php3.48 ▲0.2536.71 ▲3.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ShoppingFeeder
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼1.171.79 ▲0.0143.94 ▲0.94
Dashboard /wp-admin2,203 ▲154.84 ▼1.06109.89 ▲2.9041.98 ▼4.47
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0339.49 ▲3.9234.34 ▲1.22
Add New Post /wp-admin/post-new.php1,533 ▼023.31 ▲0.20671.25 ▼3.1155.47 ▲3.85
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.0393.56 ▼5.8440.99 ▼6.51

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output 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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

shoppingfeeder/shoppingfeeder.php 92% from 13 tests

The main PHP file in "ShoppingFeeder" ver. 1.4.9 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,641 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP63722821,641

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity54.83
▷ Minimum class complexity14.00
▷ Maximum class complexity185.00
Average method complexity12.03
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2580.65%
▷ Protected methods26.45%
▷ Private methods412.90%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin