84% bc-mini-series

Code Review | BC Mini Series

WordPress plugin BC Mini Series scored84%from 54 tests.

About plugin

  • Plugin page: bc-mini-series
  • Plugin version: 1.5.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.0
  • WordPress version: 6.3.1
  • First release: Jun 18, 2022
  • Latest release: Jul 25, 2022
  • Number of updates: 13
  • Update frequency: every 2.9 days
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /312 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼0.81ms] Passed 4 tests

A check of server-side resources used by BC Mini Series
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.2038.61 ▼2.08
Dashboard /wp-admin3.49 ▲0.1946.19 ▼5.28
Posts /wp-admin/edit.php3.60 ▲0.2549.45 ▲2.48
Add New Post /wp-admin/post-new.php6.09 ▲0.2196.65 ▲1.66
Media Library /wp-admin/upload.php3.41 ▲0.1838.57 ▲4.60
Add new series /wp-admin/post-new.php?post_type=bc_mini_series3.5449.91
All BC series /wp-admin/edit.php?post_type=bc_mini_series3.4637.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_bc_mns_post_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for BC Mini Series
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲18313.64 ▼0.7410.03 ▲8.2338.35 ▼4.08
Dashboard /wp-admin2,228 ▲524.97 ▲0.04107.07 ▼6.1946.14 ▲0.40
Posts /wp-admin/edit.php2,121 ▲322.34 ▲0.3337.88 ▲0.6534.44 ▲1.74
Add New Post /wp-admin/post-new.php6,468 ▲4,93420.56 ▼2.71846.27 ▲162.8135.48 ▼30.73
Media Library /wp-admin/upload.php1,416 ▲284.16 ▼0.0296.93 ▼1.8142.33 ▲0.15
Add new series /wp-admin/post-new.php?post_type=bc_mini_series2,3897.72188.8697.32
All BC series /wp-admin/edit.php?post_type=bc_mini_series1,1072.1730.6430.41

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_bc_mns_post_widget
    • can_compress_scripts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bc-mini-series/inc/widget.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: posts, mini series, series

bc-mini-series/main.php 85% from 13 tests

"BC Mini Series" version 1.5.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bc-mini-series.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected913 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP726135622
JavaScript1365217
CSS27274

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.67
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods1941.30%
▷ Public methods3576.09%
▷ Protected methods00.00%
▷ Private methods1123.91%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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