83% embed-and-integrate-etsy-shop

Code Review | Embed and Integrate Etsy Shop

WordPress plugin Embed and Integrate Etsy Shop scored83%from 54 tests.

About plugin

  • Plugin page: embed-and-integra...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-5.9.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2021
  • Latest release: Apr 3, 2022
  • Number of updates: 9
  • Update frequency: every 16.7 days
  • Top authors: etsy360 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,941 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.52ms] Passed 4 tests

Server-side resources used by Embed and Integrate Etsy Shop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.20 ▲1.62
Dashboard /wp-admin3.37 ▲0.0644.41 ▼1.10
Posts /wp-admin/edit.php3.48 ▲0.1243.46 ▲0.18
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.87 ▼13.45
Media Library /wp-admin/upload.php3.29 ▲0.0636.00 ▲0.30

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Embed and Integrate Etsy Shop
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲16913.57 ▼1.028.72 ▲6.8242.48 ▲2.12
Dashboard /wp-admin2,221 ▲296.04 ▲1.11101.25 ▼20.5482.69 ▲37.86
Posts /wp-admin/edit.php2,104 ▲152.02 ▼0.0333.13 ▼6.0929.51 ▼4.28
Add New Post /wp-admin/post-new.php1,681 ▲13921.94 ▲3.75679.69 ▲19.3354.21 ▼4.51
Media Library /wp-admin/upload.php1,397 ▲94.21 ▼0.03108.69 ▲9.4543.52 ▼2.06

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/embed-and-integrate-etsy-shop/admin/partials/embed-integrate-etsy-shop-admin-display.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

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
4 plugin tags: integrate, etsy, shop, embed

embed-and-integrate-etsy-shop/embed-integrate-etsy-shop.php 77% from 13 tests

Analyzing the main PHP file in "Embed and Integrate Etsy Shop" version 1.0.1
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 161 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("embed-and-integrate-etsy-shop.php" instead of "embed-integrate-etsy-shop.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin677 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS2544352
PHP12153499306
JavaScript282719

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.10
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods29
▷ Static methods26.90%
▷ Public methods2482.76%
▷ Protected methods00.00%
▷ Private methods517.24%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/imgs/icon-34x34.png0.60KB0.26KB▼ 55.81%
admin/imgs/logo.png15.53KB6.28KB▼ 59.56%
admin/imgs/icon-16x16.png0.29KB0.20KB▼ 30.85%