84% ebay-user-token

Code Review | Ebay User Token

WordPress plugin Ebay User Token scored84%from 54 tests.

About plugin

  • Plugin page: ebay-user-token
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.0.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Feb 12, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: pws.ru (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.39ms] Passed 4 tests

A check of server-side resources used by Ebay User Token
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.85 ▲0.17
Dashboard /wp-admin3.36 ▲0.0645.93 ▼3.16
Posts /wp-admin/edit.php3.47 ▲0.1245.09 ▼1.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.85 ▼5.27
Media Library /wp-admin/upload.php3.28 ▲0.0535.71 ▲0.22
Ebay User Token /wp-admin/options-general.php?page=ebay-user-token3.2531.86

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Ebay User Token
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.21 ▼1.221.82 ▲0.1842.89 ▼1.12
Dashboard /wp-admin2,216 ▲245.90 ▲0.94103.99 ▼8.0439.87 ▼0.08
Posts /wp-admin/edit.php2,080 ▼92.00 ▼0.0535.66 ▼1.1945.68 ▲14.71
Add New Post /wp-admin/post-new.php1,543 ▲1023.17 ▲0.01649.05 ▼12.1359.46 ▲7.46
Media Library /wp-admin/upload.php1,398 ▲74.26 ▲0.0497.11 ▼4.1840.62 ▼1.76
Ebay User Token /wp-admin/options-general.php?page=ebay-user-token8102.0322.1027.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ebay-user-token/ebay-user-token.php:16

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: user token, ebay, e-commerce

ebay-user-token/ebay-user-token.php Passed 13 tests

The main PHP script in "Ebay User Token" version 1.0.0 is automatically included on every request by WordPress
49 characters long description:
Allow blog users save ebay user token to metadata

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected238 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32510238

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity14.50
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1676.19%
▷ Public methods942.86%
▷ Protected methods00.00%
▷ Private methods1257.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There were not PNG files found in your plugin