10% bolcom-seller-widget

Code Review | Seller Widget - App for bol.com

WordPress plugin Seller Widget - App for bol.com scored10%from 54 tests.

About plugin

  • Plugin page: bolcom-seller-widget
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Sep 17, 2013
  • Latest release: Jan 2, 2014
  • Number of updates: 31
  • Update frequency: every 4.2 days
  • Top authors: derkmdt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,056 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/bolcom-seller-widget/includes/widgetclass-bolcom.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; bolcom_Seller_Widget has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼64.44ms] Passed 4 tests

This is a short check of server-side resources used by Seller Widget - App for bol.com
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.355.35 ▼36.59
Dashboard /wp-admin2.13 ▼1.225.53 ▼64.04
Posts /wp-admin/edit.php2.13 ▼1.236.62 ▼60.44
Add New Post /wp-admin/post-new.php2.13 ▼3.766.45 ▼96.69
Media Library /wp-admin/upload.php2.13 ▼1.107.23 ▼28.60

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_bolcom-seller-widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Seller Widget - App for bol.com
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8113.63 ▼0.731.98 ▲0.1443.56 ▲3.73
Dashboard /wp-admin2,224 ▲214.78 ▼0.11105.54 ▼11.9440.90 ▼4.69
Posts /wp-admin/edit.php2,100 ▼42.05 ▲0.0235.47 ▼6.0333.93 ▼7.94
Add New Post /wp-admin/post-new.php1,552 ▲723.02 ▼0.52639.14 ▼58.5766.33 ▲7.76
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.02103.57 ▼7.6645.17 ▼4.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/bolcom-seller-widget/includes/widgetclass-bolcom.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; bolcom_Seller_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_bolcom-seller-widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bolcom-seller-widget/bolcom-widget.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bolcom-seller-widget/includes/widgetclass-bolcom.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: plaza, tweedehands boeken, tweede hands, bolcom, second hand books...

bolcom-seller-widget/bolcom-widget.php 92% from 13 tests

"Seller Widget - App for bol.com" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bolcom-seller-widget.php" instead of "bolcom-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected256 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35864154
PO File1162156
CSS110046

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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