84% bookertools-shows

Code Review | Bookertools Integration

WordPress plugin Bookertools Integration scored84%from 54 tests.

About plugin

  • Plugin page: bookertools-shows
  • Plugin version: 1.5.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2016
  • Latest release: Sep 4, 2022
  • Number of updates: 24
  • Update frequency: every 96.9 days
  • Top authors: codefairies (62.5%)driga (41.67%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /822 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.88ms] Passed 4 tests

This is a short check of server-side resources used by Bookertools Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1136.30 ▼4.07
Dashboard /wp-admin3.44 ▲0.1448.55 ▼0.80
Posts /wp-admin/edit.php3.55 ▲0.2053.23 ▲5.76
Add New Post /wp-admin/post-new.php6.02 ▲0.1483.25 ▼11.70
Media Library /wp-admin/upload.php3.36 ▲0.1437.30 ▲5.07
Booker Tools /wp-admin/options-general.php?page=bookertools-settings3.3331.68

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_bookertools_widget

Browser metrics Passed 4 tests

Bookertools Integration: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.70 ▼0.731.67 ▼0.3640.72 ▼2.43
Dashboard /wp-admin2,207 ▲215.83 ▲0.82104.08 ▼17.7440.26 ▼4.86
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0143.63 ▲8.0034.97 ▲1.18
Add New Post /wp-admin/post-new.php1,536 ▲323.26 ▲0.09685.20 ▲1.4556.13 ▼5.07
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.06110.10 ▲10.0247.12 ▲2.66
Booker Tools /wp-admin/options-general.php?page=bookertools-settings8182.0624.3328.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_bookertools_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookertools-shows/bookertools-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bookertools-shows/bookertools-shortcode.php:39
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bookertools-shows/bookertools-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bookertools-shows/bookertools-stylesheet.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: bookertools

bookertools-shows/bookertools-integration.php 85% from 13 tests

The main PHP script in "Bookertools Integration" version 1.5.2 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("bookertools-shows.php" instead of "bookertools-integration.php")
  • Description: The description should be shorter than 140 characters (currently 178 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin813 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7135110777
CSS224036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity12.75
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods2793.10%
▷ Protected methods00.00%
▷ Private methods26.90%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin