68% siliconplex-ebay-feedback-listing

Code Review | SP Feedbacks - Your eBay in Your Site

WordPress plugin SP Feedbacks - Your eBay in Your Site scored68%from 54 tests.

About plugin

  • Plugin page: siliconplex-ebay-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.3
  • WordPress version: 6.3.1
  • First release: Dec 14, 2019
  • Latest release: Dec 18, 2019
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: usamasiliconplex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /693 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.26ms] Passed 4 tests

A check of server-side resources used by SP Feedbacks - Your eBay in Your Site
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1839.13 ▼5.94
Dashboard /wp-admin3.56 ▲0.2547.07 ▼7.34
Posts /wp-admin/edit.php3.61 ▲0.2550.66 ▲0.41
Add New Post /wp-admin/post-new.php6.09 ▲0.2190.05 ▼4.18
Media Library /wp-admin/upload.php3.42 ▲0.1935.34 ▲1.68
Auth /wp-admin/admin.php?page=sp_ebay_auth3.3932.84
Feedbacks Settings /wp-admin/admin.php?page=sp_ebay_feedbacks3.3834.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

SP Feedbacks - Your eBay in Your Site: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,947 ▲19014.06 ▼0.695.65 ▲3.4139.05 ▼11.46
Dashboard /wp-admin2,237 ▲495.87 ▲0.86103.94 ▼10.1542.27 ▼0.99
Posts /wp-admin/edit.php2,125 ▲362.33 ▲0.3335.47 ▼4.1331.64 ▼7.67
Add New Post /wp-admin/post-new.php1,544 ▲1117.63 ▼5.28657.27 ▲4.8539.01 ▼14.35
Media Library /wp-admin/upload.php1,424 ▲364.48 ▲0.2796.38 ▼5.4743.45 ▲2.37
Auth /wp-admin/admin.php?page=sp_ebay_auth9091.9223.4027.77
Feedbacks Settings /wp-admin/admin.php?page=sp_ebay_feedbacks8711.9225.0629.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/siliconplex-ebay-feedback-listing/uninstall.php+23
    Undefined variable: option
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/siliconplex-ebay-feedback-listing/sp-ebay.php
  • 10× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Base/Enqueue.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Api/Callbacks/AdminCallbacks.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Api/Callbacks/SectionsCallbacks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/siliconplex-ebay-feedback-listing/templates/public/feedbacks/feedbacks_shortcode.php:67
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Api/Callbacks/FieldsCallbacks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/siliconplex-ebay-feedback-listing/templates/admin/auth.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Pages/Admin.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Api/Callbacks/PagesCallbacks.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/siliconplex-ebay-feedback-listing/templates/admin/feedbacks.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'SpEFLInc\\Base\\BaseController' not found in wp-content/plugins/siliconplex-ebay-feedback-listing/includes/Base/SettingsLinks.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ebay feedbacks, ebay reviews, feedbacks, reviews

siliconplex-ebay-feedback-listing/sp-ebay.php 77% from 13 tests

Analyzing the main PHP file in "SP Feedbacks - Your eBay in Your Site" version 1.0.0
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 183 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("siliconplex-ebay-feedback-listing.php" instead of "sp-ebay.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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,311 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP2734,69155,3701,053
JavaScript1649180
CSS216362
JSON22016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.18
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods67
▷ Static methods913.43%
▷ Public methods6597.01%
▷ Protected methods00.00%
▷ Private methods22.99%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.32MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png133.23KB32.55KB▼ 75.57%
assets/public/images/feedback_type_icons/Positive.png0.49KB0.25KB▼ 49.60%
assets/screenshot-1.png192.03KB46.70KB▼ 75.68%
assets/public/images/feedback_type_icons/Negative.png0.53KB0.28KB▼ 46.57%
assets/public/images/feedback_type_icons/Neutral.png0.51KB0.26KB▼ 48.27%