84% linekal-ebay-affiliate-system

Code Review | Ebay Affiliate System for WordPress

WordPress plugin Ebay Affiliate System for WordPress scored 84% from 54 tests.

About plugin

  • Plugin page: linekal-ebay-affi...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 18, 2017
  • Latest release: Jul 10, 2021
  • Number of updates: 8
  • Update frequency: every 177.8 days
  • Top authors: linekal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 4,036 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.35ms] Passed 4 tests

An overview of server-side resources used by Ebay Affiliate System for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.31 ▼6.16
Dashboard /wp-admin3.35 ▲0.0448.17 ▲1.82
Posts /wp-admin/edit.php3.40 ▲0.0452.40 ▲3.72
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.96 ▼3.47
Media Library /wp-admin/upload.php3.27 ▲0.0435.84 ▲2.41
Ebay Affiliate System /wp-admin/options-general.php?page=ebayaffiliatesystem3.2141.06

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

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

Browser metrics Passed 4 tests

Ebay Affiliate System for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲5113.33 ▼1.231.75 ▼0.8144.47 ▲7.54
Dashboard /wp-admin2,215 ▲275.88 ▲0.97107.74 ▼10.6939.35 ▼8.10
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0040.28 ▲1.3134.72 ▼1.70
Add New Post /wp-admin/post-new.php1,533 ▲1423.36 ▲0.00624.30 ▲11.3952.09 ▼0.90
Media Library /wp-admin/upload.php1,394 ▲94.28 ▲0.0993.60 ▼5.8741.12 ▼2.93
Ebay Affiliate System /wp-admin/options-general.php?page=ebayaffiliatesystem9272.1526.7726.16

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ebayaffiliatesystem
    • > Notice in wp-content/plugins/linekal-ebay-affiliate-system/admin-ebay-affiliate-system.php+280
    Trying to access array offset on value of type bool

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rss feeds, ebay partner feeds, ebay, ebay affiliate, affiliate marketing

linekal-ebay-affiliate-system/admin-ebay-affiliate-system.php 92% from 13 tests

The principal PHP file in "Ebay Affiliate System for WordPress" v. 2.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("linekal-ebay-affiliate-system.php" instead of "admin-ebay-affiliate-system.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin580 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP29715432
CSS200148

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
author_profile.png127.33KB140.09KB0.00%
banner-772x250.png56.76KB15.34KB▼ 72.97%
icon-256x256.png25.45KB7.91KB▼ 68.91%