78% findabookclub-reading-list

Code Review | FindABookClub Reading List

WordPress plugin FindABookClub Reading List scored 78% from 54 tests.

About plugin

  • Plugin page: findabookclub-rea...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 24, 2023
  • Latest release: Apr 24, 2023
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: fabcreadinglist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 68 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.32MB] [CPU: ▼19.72ms] Passed 4 tests

This is a short check of server-side resources used by FindABookClub Reading List
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0331.40 ▼12.65
Dashboard /wp-admin3.32 ▲0.0144.33 ▼2.32
Posts /wp-admin/edit.php3.37 ▲0.0143.18 ▼5.65
Add New Post /wp-admin/post-new.php4.61 ▼1.2842.37 ▼58.26
Media Library /wp-admin/upload.php3.24 ▲0.0135.90 ▲2.02
Find A Book Club /wp-admin/options-general.php?page=find_a_book_club3.1830.45

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for FindABookClub Reading List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.24 ▼1.141.72 ▼0.0744.36 ▲1.83
Dashboard /wp-admin2,213 ▲284.86 ▼0.0296.34 ▼7.5439.38 ▼1.65
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0334.86 ▼4.5132.65 ▼1.79
Add New Post /wp-admin/post-new.php1,536 ▲2223.27 ▲5.69659.27 ▲35.1652.65 ▲4.60
Media Library /wp-admin/upload.php1,389 ▼24.18 ▼0.02104.19 ▲4.2144.37 ▲0.35
Find A Book Club /wp-admin/options-general.php?page=find_a_book_club7772.0624.1824.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=find_a_book_club
    • > Notice in wp-content/plugins/findabookclub-reading-list/fabc_reading_list_link.php+80
    Trying to access array offset on value of type bool

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/findabookclub-reading-list/fabc_reading_list_link.php:39

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

Optimizations

Plugin configuration 90% 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: findabookclub

findabookclub-reading-list/fabc_reading_list_link.php 77% from 13 tests

The primary PHP file in "FindABookClub Reading List" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("findabookclub-reading-list.php" instead of "fabc_reading_list_link.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1281370

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions6
▷ Named functions6100.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