84% gg-ebay-management

Code Review | GG eBay Management

WordPress plugin GG eBay Management scored 84% from 54 tests.

About plugin

  • Plugin page: gg-ebay-management
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4.2
  • WordPress version: 6.3.1
  • First release: Aug 10, 2020
  • Latest release: Aug 11, 2020
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: gutengeek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.61MB] [CPU: ▼6.72ms] Passed 4 tests

A check of server-side resources used by GG eBay Management
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3844.35 ▼6.10
Dashboard /wp-admin3.99 ▲0.6952.32 ▼8.80
Posts /wp-admin/edit.php4.05 ▲0.6954.55 ▼1.75
Add New Post /wp-admin/post-new.php6.60 ▲0.7291.13 ▼10.21
Media Library /wp-admin/upload.php3.92 ▲0.6943.52 ▲1.35
eBay Accounts /wp-admin/edit.php?post_type=ggem_ebay3.9752.34
Groups /wp-admin/edit-tags.php?taxonomy=ggem_group&post_type=ggem_ebay3.9235.20
Payments /wp-admin/edit-tags.php?taxonomy=ggem_payment&post_type=ggem_ebay3.9742.37
Servers /wp-admin/edit-tags.php?taxonomy=ggem_server&post_type=ggem_ebay3.9738.75
Add New Account /wp-admin/post-new.php?post_type=ggem_ebay4.1059.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 153 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by GG eBay Management
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲13113.44 ▼0.982.13 ▲0.0341.89 ▼3.10
Dashboard /wp-admin2,253 ▲655.17 ▼0.62111.71 ▲3.2361.72 ▲7.13
Posts /wp-admin/edit.php2,139 ▲442.29 ▲0.2939.16 ▲1.4132.42 ▼4.49
Add New Post /wp-admin/post-new.php1,554 ▲2123.13 ▲0.08659.17 ▼66.3265.93 ▲5.67
Media Library /wp-admin/upload.php1,435 ▲474.34 ▲0.16110.05 ▼17.4547.44 ▼8.99
eBay Accounts /wp-admin/edit.php?post_type=ggem_ebay1,2002.4534.0431.03
Groups /wp-admin/edit-tags.php?taxonomy=ggem_group&post_type=ggem_ebay1,3061.9331.1930.31
Payments /wp-admin/edit-tags.php?taxonomy=ggem_payment&post_type=ggem_ebay1,5342.6144.3534.52
Servers /wp-admin/edit-tags.php?taxonomy=ggem_server&post_type=ggem_ebay1,4852.6340.0534.78
Add New Account /wp-admin/post-new.php?post_type=ggem_ebay2,7668.29201.2783.51

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/Field/views/input-editor.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/View/indexes.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'GGEM\\Core\\Metabox' not found in wp-content/plugins/gg-ebay-management/inc/Admin/Metabox/Server_Term_Meta.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/Field/views/input-switch.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GGEM\\Core\\Metabox' not found in wp-content/plugins/gg-ebay-management/inc/Admin/Metabox/EBay_Account_Metabox.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/Field/views/input-textarea.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/Field/views/input-text.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/View/tabs.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/gg-ebay-management/inc/Libraries/Form/Field/views/input-date.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'GGEM\\Core\\Metabox' not found in wp-content/plugins/gg-ebay-management/inc/Admin/Setting/General.php:13

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: gutengeek, ebay management

gg-ebay-management/gg-ebay-management.php 85% from 13 tests

"GG eBay Management" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.2" instead of "3.6")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin16,880 lines of code in 139 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript692,66387410,271
PHP611,2332,0935,249
CSS73151161,340
SVG10019
JSON1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.47
▷ Minimum class complexity1.00
▷ Maximum class complexity98.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces13
Interfaces1
Traits1
Classes36
▷ Abstract classes25.56%
▷ Concrete classes3494.44%
▷ Final classes00.00%
Methods265
▷ Static methods3011.32%
▷ Public methods22584.91%
▷ Protected methods134.91%
▷ Private methods2710.19%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin