90% bookmaster

Code Review | BookMaster

WordPress plugin BookMaster scored90%from 54 tests.

About plugin

  • Plugin page: bookmaster
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2010
  • Latest release: Feb 23, 2023
  • Number of updates: 30
  • Update frequency: every 170.1 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,658 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.79ms] Passed 4 tests

This is a short check of server-side resources used by BookMaster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.08 ▼2.68
Dashboard /wp-admin3.32 ▲0.0144.73 ▼9.46
Posts /wp-admin/edit.php3.37 ▲0.0147.39 ▼6.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.99 ▼16.46
Media Library /wp-admin/upload.php3.24 ▲0.0136.33 ▼0.28

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by BookMaster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.72 ▲0.351.96 ▲0.0141.50 ▼5.88
Dashboard /wp-admin2,195 ▲155.63 ▲0.0296.34 ▲10.0047.17 ▲10.16
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0140.46 ▲1.6036.84 ▲0.04
Add New Post /wp-admin/post-new.php1,526 ▼023.21 ▲0.04604.62 ▼79.7456.31 ▼8.33
Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.0598.34 ▼6.2944.35 ▼4.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

bookmaster/bookmaster.php Passed 13 tests

The main file in "BookMaster" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Display the link category titles without the links

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
Everything looks great! No dangerous files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152434

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected