84% wooebay

Code Review | WooEbay

WordPress plugin WooEbay scored84%from 54 tests.

About plugin

  • Plugin page: wooebay
  • Plugin version: 1.00
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9.1
  • WordPress version: 6.3.1
  • First release: Jan 26, 2018
  • Latest release: Feb 6, 2018
  • Number of updates: 6
  • Update frequency: every 3.0 days
  • Top authors: ineedhtml (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,074 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.26MB] [CPU: ▼6.65ms] Passed 4 tests

Analyzing server-side resources used by WooEbay
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2537.47 ▼2.93
Dashboard /wp-admin3.57 ▲0.2345.47 ▼21.44
Posts /wp-admin/edit.php3.69 ▲0.3349.00 ▲0.37
Add New Post /wp-admin/post-new.php6.17 ▲0.2993.02 ▼2.59
Media Library /wp-admin/upload.php3.50 ▲0.2737.61 ▲3.23

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WooEbay
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.37 ▲0.021.72 ▼0.0141.36 ▲3.33
Dashboard /wp-admin2,224 ▲505.82 ▲0.2793.07 ▲1.2240.68 ▼5.21
Posts /wp-admin/edit.php2,137 ▲342.25 ▲0.3041.38 ▲3.7532.66 ▼2.07
Add New Post /wp-admin/post-new.php1,559 ▲2823.20 ▲0.03648.01 ▲17.8636.22 ▼16.64
Media Library /wp-admin/upload.php1,429 ▲264.36 ▲0.1595.47 ▼6.8740.36 ▼0.68

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooebay/wooebay_hooks.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wooebay/wooebay.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Configure the plugin. 1.1. In the product menu woocommerce, go to the plug-in page. 1.2. Click the Settings tab. 1.3. In the API Settings section, specify the data that you registered with at https://ineedebaytemplate.com (mandatory, required to generate templates) 1.4 Complete all other data for the ebay template 1.5 Save the settings.), #2 (Generate templates on the plug-in page.2.1. Click the Generate Templates tab. 2.2 Select the product list that suits you. 2.3 Using the action list, check / uncheck, collapse / expand all products. 2.4 For mass generation, select the desired products and click Generate for marked. (the data for the template is taken by those indicated on the settings page, even if the current data was not saved) 2.5 Select to view the generated template. 2.6 Select to download the template. 2.7 Select to regenerate the template (the link remains the same). 2.8 Select to delete the template.), #3 (To generate templates on the woocommerce product page, go to the EBay template tab. 3.1 If necessary, select the individual color of the template for this product. 3.2 If necessary, select an individual template theme for this product. 3.3 Select to view the generated template. 3.4 Select to download the template. 3.5 Select to regenerate the template (the link remains the same). 3.6 Select to delete the template.)
  • Requires php: Invalid plugin version format
The official readme.txt might help

wooebay/wooebay.php Passed 13 tests

The main PHP script in "WooEbay" version 1.00 is automatically included on every request by WordPress
94 characters long description:
WooEbay is the easet way to export your WooCommerce store products to beautiful ebay listings.

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
There were no executable files found in this plugin2,365 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP363731,333
JavaScript34536656
CSS26922344
SVG20032

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions62
▷ Named functions62100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/refresh.png0.66KB0.64KB▼ 2.65%
img/icon-product.png0.55KB0.42KB▼ 24.07%
img/icon-done.png0.68KB0.51KB▼ 24.42%
img/logos/iloxx.png2.45KB1.83KB▼ 25.08%
img/icon-done-done.png0.42KB0.29KB▼ 31.63%