84% fast-ebay-listings

Code Review | Fast eBay Listings

WordPress plugin Fast eBay Listings scored84%from 54 tests.

About plugin

  • Plugin page: fast-ebay-listings
  • Plugin version: 2.9.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Oct 1, 2016
  • Latest release: Nov 25, 2023
  • Number of updates: 189
  • Update frequency: every 13.8 days
  • Top authors: Arfa__ (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

200+ active /13,137 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: ▲1.06MB] [CPU: ▲9.34ms] Passed 4 tests

This is a short check of server-side resources used by Fast eBay Listings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.48 ▲1.0255.91 ▲16.40
Dashboard /wp-admin4.36 ▲1.0159.08 ▼3.92
Posts /wp-admin/edit.php4.47 ▲1.1156.11 ▲10.25
Add New Post /wp-admin/post-new.php7.23 ▲1.34105.75 ▲14.62
Media Library /wp-admin/upload.php4.30 ▲1.0749.40 ▲16.94
Fast eBay Listings /wp-admin/options-general.php?page=fast-ebay-listings4.2738.83

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 91 new files
Database: no new tables, 49 new options
New WordPress options
fubaby_ebayPicWidthItem
widget_recent-posts
fubaby_ebayDefArrangementList
fubaby_ebayDefSellerType
fubaby_ebayLinkText
fubaby_ebayEmptySearchMsg
fubaby_ebayDefSeller
fubaby_ebayDefSlideshowStyle
fubaby_ebayDisplayFELLink
fubaby_ebayDefCategory
...

Browser metrics Passed 4 tests

A check of browser resources used by Fast eBay Listings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,985 ▲24913.60 ▼0.7611.90 ▲10.2138.89 ▼8.88
Dashboard /wp-admin2,289 ▲1145.66 ▼0.0686.80 ▼26.6244.26 ▼2.76
Posts /wp-admin/edit.php2,188 ▲852.08 ▲0.1440.69 ▲0.5335.26 ▲0.57
Add New Post /wp-admin/post-new.php6,475 ▲4,94922.75 ▼0.54880.47 ▲220.2845.83 ▼13.31
Media Library /wp-admin/upload.php1,478 ▲844.25 ▲0.0496.25 ▲0.4944.70 ▲4.57
Fast eBay Listings /wp-admin/options-general.php?page=fast-ebay-listings1,1352.0628.6230.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_fuebaywidgetsearch
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_fuebaywidgetsearchdynamic
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please take a closer look at the following
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-ebay-listings/blocks/item/item.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/fast-ebay-listings/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fast-ebay-listings/blocks/rssfeed/rssfeed.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/fast-ebay-listings/constants.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: ebay partner network, ebay, search, affiliate, monetize...

fast-ebay-listings/fast-ebay-listings.php Passed 13 tests

The entry point to "Fast eBay Listings" version 2.9.0 is a PHP file that has certain tags in its header comment area
86 characters long description:
Display eBay auctions on your site, through the use of blocks, shortcodes and widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6,887 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
PHP307196264,498
JavaScript141351902,059
JSON400234
CSS517496

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.45
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity4.26
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes32
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
Methods129
▷ Static methods86.20%
▷ Public methods7054.26%
▷ Protected methods5139.53%
▷ Private methods86.20%
Functions72
▷ Named functions5373.61%
▷ Anonymous functions1926.39%
Constants87
▷ Global constants2225.29%
▷ Class constants6574.71%
▷ Public constants6396.92%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ES/eBay_ahora_mismo_en-_vert.png7.13KB3.07KB▼ 56.98%
ES/eBay_ahora_mismo_en _vert.png14.00KB8.06KB▼ 42.43%
ES/144X69.png8.45KB3.26KB▼ 61.46%
images/developersprogrammember.png5.15KB3.09KB▼ 39.91%
ES/123X59.png7.47KB3.23KB▼ 56.75%