10% get-your-ebay-feedback

Code Review | WEBAY, Get Your Ebay Feedbacks

WordPress plugin WEBAY, Get Your Ebay Feedbacks scored10%from 54 tests.

About plugin

  • Plugin page: get-your-ebay-fee...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3
  • WordPress version: 6.3.1
  • First release: Feb 16, 2015
  • Latest release: Aug 25, 2015
  • Number of updates: 32
  • Update frequency: every 5.9 days
  • Top authors: wemiura (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /2,966 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/get-your-ebay-feedback/wm-get-your-ebay-feedback.php+155
    Function create_function() is deprecated

Server metrics [RAM: ▼1.97MB] [CPU: ▼57.15ms] Passed 4 tests

Analyzing server-side resources used by WEBAY, Get Your Ebay Feedbacks
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.64 ▼37.29
Dashboard /wp-admin2.05 ▼1.306.11 ▼49.17
Posts /wp-admin/edit.php2.05 ▼1.316.87 ▼39.07
Add New Post /wp-admin/post-new.php2.05 ▼3.845.21 ▼103.05
Media Library /wp-admin/upload.php2.05 ▼1.185.14 ▼27.19
Get Your Ebay Feedback /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options2.055.06

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: 1 new table, 8 new options
New tables
wp_wm_get_ebay_fb_table
New WordPress options
theysaidso_admin_options
widget_recent-posts
wm_get_ebay_fb_shortcode_option
can_compress_scripts
db_upgraded
widget_recent-comments
widget_wm_get_ebay_fb_widget_slider
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WEBAY, Get Your Ebay Feedbacks
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲16013.73 ▼0.859.20 ▲7.4742.78 ▲1.20
Dashboard /wp-admin2,222 ▲345.81 ▲0.7797.76 ▼5.1736.95 ▼5.04
Posts /wp-admin/edit.php2,105 ▲192.00 ▲0.0035.12 ▼4.5732.74 ▼4.44
Add New Post /wp-admin/post-new.php1,529 ▲1017.86 ▼5.10676.61 ▲82.0357.87 ▲9.97
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0398.61 ▼4.1344.27 ▲0.52
Get Your Ebay Feedback /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options1,1242.0825.1625.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/get-your-ebay-feedback/wm-get-your-ebay-feedback.php+155
    Function create_function() is deprecated
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wm_get_ebay_fb_table
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_wm_get_ebay_fb_widget_slider
    • widget_recent-posts
    • widget_theysaidso_widget
    • wm_get_ebay_fb_shortcode_option

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options
    • > Deprecated in wp-content/plugins/get-your-ebay-feedback/wm-get-your-ebay-feedback.php+155
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wm_get_your_ebay_feedback_plugin_options
    • > Notice in wp-content/plugins/get-your-ebay-feedback/library/user.php+73
    Trying to access array offset on value of type bool

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 fix the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/get-your-ebay-feedback/library/shortcode.php:50
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/get-your-ebay-feedback/library/cron.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/get-your-ebay-feedback/library/user.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/get-your-ebay-feedback/library/widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-your-ebay-feedback/library/ajax.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/get-your-ebay-feedback/library/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-your-ebay-feedback/library/external_files.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/get-your-ebay-feedback/library/general_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/get-your-ebay-feedback/wm-get-your-ebay-feedback.php:155

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can take inspiration from this readme.txt

get-your-ebay-feedback/wm-get-your-ebay-feedback.php 92% from 13 tests

The primary PHP file in "WEBAY, Get Your Ebay Feedbacks" version 1.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("get-your-ebay-feedback.php" instead of "wm-get-your-ebay-feedback.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,815 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP11493911,194
SVG210533
CSS415887
JavaScript13141

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods00.00%
▷ Private methods15.56%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
library/img/logo_ebay.png7.48KB2.37KB▼ 68.31%