78% etsy-shop

Code Review | Etsy Shop

WordPress plugin Etsy Shop scored78%from 54 tests.

About plugin

  • Plugin page: etsy-shop
  • Plugin version: 3.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 4, 2011
  • Latest release: Oct 11, 2023
  • Number of updates: 76
  • Update frequency: every 57.3 days
  • Top authors: fsheedy (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

6,000+ active /134,817 total downloads

Benchmarks

Plugin footprint 82% 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.10MB] [CPU: ▼8.63ms] Passed 4 tests

Analyzing server-side resources used by Etsy Shop
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.66 ▼1.93
Dashboard /wp-admin3.41 ▲0.0756.13 ▼12.40
Posts /wp-admin/edit.php3.53 ▲0.1753.84 ▲2.34
Add New Post /wp-admin/post-new.php6.00 ▲0.1185.45 ▼22.54
Media Library /wp-admin/upload.php3.34 ▲0.1140.55 ▲4.26

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

Filesystem and database footprint
Please try to fix the following items
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/etsy-shop/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
etsy_shop_timeout
db_upgraded
can_compress_scripts
etsy_shop_version
widget_recent-comments
etsy_shop_cache_life

Browser metrics Passed 4 tests

Etsy Shop: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.63 ▲0.351.58 ▼4.7242.21 ▼5.79
Dashboard /wp-admin2,233 ▲335.79 ▼0.08109.19 ▼14.6342.28 ▼3.98
Posts /wp-admin/edit.php2,115 ▲122.05 ▲0.0040.64 ▲1.1537.24 ▼0.11
Add New Post /wp-admin/post-new.php1,539 ▼1517.63 ▼0.90698.56 ▲59.3166.19 ▲7.49
Media Library /wp-admin/upload.php1,412 ▲124.22 ▲0.12100.89 ▼8.6144.01 ▼2.35
Etsy Shop /wp-admin/etsy-shop.php260.440.1213.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • etsy_shop_timeout
    • widget_theysaidso_widget
    • etsy_shop_cache_life
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • etsy_shop_version
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/etsy-shop/etsy-shop.php:42

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/etsy-shop.php
    • > Network (severe)
    wp-admin/etsy-shop.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: sell, bracket, shopping, store, shortcode...

etsy-shop/etsy-shop.php Passed 13 tests

"Etsy Shop" version 3.0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
61 characters long description:
Inserts Etsy products in page or post using shortcode method.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected827 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP110594593
PO File25057132
CSS114085
JavaScript11017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.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