84% book-share-manager

Code Review | Book Share Manager

WordPress plugin Book Share Manager scored84%from 54 tests.

About plugin

  • Plugin page: book-share-manager
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Nov 10, 2017
  • Number of updates: 9
  • Update frequency: every 86.5 days
  • Top authors: jaedm97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /984 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.98ms] Passed 4 tests

This is a short check of server-side resources used by Book Share Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.15 ▼0.25
Dashboard /wp-admin3.38 ▲0.0853.53 ▲5.38
Posts /wp-admin/edit.php3.50 ▲0.1454.29 ▲5.01
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.28 ▼18.59
Media Library /wp-admin/upload.php3.28 ▲0.0535.99 ▼2.08
Add New /wp-admin/post-new.php?post_type=bsm_book3.3449.71
Add New /wp-admin/post-new.php?post_type=bsm_sharer3.3449.82
BSM Sharer /wp-admin/edit.php?post_type=bsm_sharer3.3542.25
BSM Book /wp-admin/edit.php?post_type=bsm_book3.3538.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Book Share Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,089 ▲30314.92 ▲0.636.69 ▲4.5444.48 ▼0.96
Dashboard /wp-admin2,394 ▲2176.17 ▲0.64102.98 ▲15.5939.37 ▼0.01
Posts /wp-admin/edit.php2,328 ▲2283.41 ▲1.4351.27 ▲14.2630.64 ▼4.23
Add New Post /wp-admin/post-new.php1,592 ▲6623.11 ▲0.13599.65 ▼20.9536.59 ▼10.72
Media Library /wp-admin/upload.php1,472 ▲724.29 ▲0.0883.77 ▼24.2247.07 ▲4.38
Add New /wp-admin/post-new.php?post_type=bsm_book1,7433.5963.1339.11
Add New /wp-admin/post-new.php?post_type=bsm_sharer1,7553.5867.6636.37
BSM Sharer /wp-admin/edit.php?post_type=bsm_sharer1,2923.3343.2328.11
BSM Book /wp-admin/edit.php?post_type=bsm_book1,2923.3444.0027.69

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 take a closer look at the following
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined index: bsm_book_category in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/book-share-manager/includes/require-bsm-check.php:10
    • > PHP Notice
      Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-check.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/book-share-manager/includes/require-bsm-join.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/book-share-manager/includes/require-bsm-share.php:11
    • > PHP Notice
      Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 8
    • > PHP Notice
      Undefined index: bsm_user_pin in wp-content/plugins/book-share-manager/includes/require-bsm-share.php on line 9
    • > PHP Notice
      Undefined index: bsm_user_id in wp-content/plugins/book-share-manager/includes/require-bsm-join.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration Passed 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
There were not plugin tags detected

book-share-manager/book-share-manager.php Passed 13 tests

The main file in "Book Share Manager" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
108 characters long description:
It will make your website to a Book sharing website. It will work in a single institution with some feature.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,865 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
31 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
JaedAdmin/css/icons/dark/os-windows.png3.03KB0.61KB▼ 80.01%
JaedAdmin/css/icons/keywords.png3.12KB0.74KB▼ 76.13%
JaedAdmin/css/icons/os-apple.png2.97KB0.48KB▼ 83.72%
JaedAdmin/css/icons/dark/browser-firefox.png1.44KB0.75KB▼ 48.41%
css/no-thumb.png32.28KB19.63KB▼ 39.17%