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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 5.35 ▼36.59 |
Dashboard /wp-admin | 2.13 ▼1.22 | 5.53 ▼64.04 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.62 ▼60.44 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 6.45 ▼96.69 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲81 | 13.63 ▼0.73 | 1.98 ▲0.14 | 43.56 ▲3.73 |
Dashboard /wp-admin | 2,224 ▲21 | 4.78 ▼0.11 | 105.54 ▼11.94 | 40.90 ▼4.69 |
Posts /wp-admin/edit.php | 2,100 ▼4 | 2.05 ▲0.02 | 35.47 ▼6.03 | 33.93 ▼7.94 |
Add New Post /wp-admin/post-new.php | 1,552 ▲7 | 23.02 ▼0.52 | 639.14 ▼58.57 | 66.33 ▲7.76 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.20 ▼0.02 | 103.57 ▼7.66 | 45.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 64 | 154 |
PO File | 1 | 16 | 21 | 56 |
CSS | 1 | 10 | 0 | 46 |
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 code | 0.23 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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