Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/bookfin-widget/bookfin.widget.php+49
Methods with the same name as their class will not be constructors in a future version of PHP; BookfinWidget has a deprecated constructor
Server metrics [RAM: ▼1.71MB] [CPU: ▼48.02ms] Passed 4 tests
A check of server-side resources used by BookFin eBook Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 8.00 ▼34.00 |
Dashboard /wp-admin | 2.29 ▼1.01 | 10.66 ▼41.17 |
Posts /wp-admin/edit.php | 2.29 ▼1.06 | 12.61 ▼35.98 |
Add New Post /wp-admin/post-new.php | 2.29 ▼3.59 | 10.08 ▼80.93 |
Media Library /wp-admin/upload.php | 2.29 ▼0.94 | 10.19 ▼23.12 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_bf-bookfin |
Browser metrics Passed 4 tests
An overview of browser requirements for BookFin eBook Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.51 ▼1.10 | 4.00 ▲2.17 | 36.75 ▼6.17 |
Dashboard /wp-admin | 2,206 ▲15 | 5.90 ▲0.97 | 108.02 ▲2.27 | 43.03 ▼1.08 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 1.99 ▼0.07 | 34.56 ▼5.40 | 33.16 ▼3.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.15 ▲0.42 | 653.37 ▼10.55 | 49.41 ▼9.89 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.07 | 92.38 ▼6.75 | 41.02 ▼6.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in BookfinWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- widget_bf-bookfin
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bookfin-widget/bookfin.widget.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Optik), #2 (Optionen)
bookfin-widget/bookfin.widget.php 92% from 13 tests
"BookFin eBook Widget" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bookfin-widget.php" instead of "bookfin.widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin95 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 34 | 58 | 95 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 22.63KB | 6.91KB | ▼ 69.48% |
screenshot-1.png | 24.20KB | 6.75KB | ▼ 72.10% |
icon.png | 1.62KB | 0.66KB | ▼ 59.27% |