90% ebaylink

Code Review | eBay Link

WordPress plugin eBay Link scored90%from 54 tests.

About plugin

  • Plugin page: ebaylink
  • Plugin version: 3.12
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Jan 23, 2019
  • Latest release: Aug 30, 2023
  • Number of updates: 17
  • Update frequency: every 98.9 days
  • Top authors: ebaylink (64.71%)citybeachsoftware (41.18%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,136 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.00MB] [CPU: ▼0.86ms] Passed 4 tests

Analyzing server-side resources used by eBay Link
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.84 ▼1.59
Dashboard /wp-admin3.31 ▲0.0152.39 ▼0.61
Posts /wp-admin/edit.php3.42 ▲0.0752.80 ▼3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.00100.70 ▲5.64
Media Library /wp-admin/upload.php3.23 ▲0.0038.53 ▲2.63

Server storage [IO: ▲0.02MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for eBay Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.75 ▲0.011.67 ▼0.2541.72 ▼1.69
Dashboard /wp-admin2,195 ▲185.58 ▼0.1388.62 ▼2.8038.09 ▼1.27
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0639.04 ▼1.3334.58 ▼5.90
Add New Post /wp-admin/post-new.php1,554 ▲2318.60 ▼4.57623.37 ▼65.0054.27 ▼22.37
Media Library /wp-admin/upload.php1,397 ▲34.33 ▲0.0896.71 ▼4.4342.25 ▼4.14

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, ebay

ebaylink/ebaylink.php Passed 13 tests

"eBay Link" version 3.12's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
42 characters long description:
Connect your WooCommerce to eBay Australia

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin350 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP38518350

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.50
▷ Minimum class complexity12.00
▷ Maximum class complexity13.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods315.79%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected