10% bookfin-widget

Code Review | BookFin eBook Widget

WordPress plugin BookFin eBook Widget scored 10% from 54 tests.

About plugin

  • Plugin page: bookfin-widget
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8+
  • WordPress version: 6.3.1
  • First release: Jul 31, 2014
  • Latest release: Jul 31, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: StarGutschein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 791 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.188.00 ▼34.00
Dashboard /wp-admin2.29 ▼1.0110.66 ▼41.17
Posts /wp-admin/edit.php2.29 ▼1.0612.61 ▼35.98
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.08 ▼80.93
Media Library /wp-admin/upload.php2.29 ▼0.9410.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.51 ▼1.104.00 ▲2.1736.75 ▼6.17
Dashboard /wp-admin2,206 ▲155.90 ▲0.97108.02 ▲2.2743.03 ▼1.08
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0734.56 ▼5.4033.16 ▼3.06
Add New Post /wp-admin/post-new.php1,533 ▼023.15 ▲0.42653.37 ▼10.5549.41 ▼9.89
Media Library /wp-admin/upload.php1,388 ▲34.24 ▲0.0792.38 ▼6.7541.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

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)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
PHP1345895

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 code0.26
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png22.63KB6.91KB▼ 69.48%
screenshot-1.png24.20KB6.75KB▼ 72.10%
icon.png1.62KB0.66KB▼ 59.27%