84% bcd-roster-companion

Code Review | BCD Roster Companion

WordPress plugin BCD Roster Companion scored 84% from 54 tests.

About plugin

  • Plugin page: bcd-roster-companion
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Mar 26, 2013
  • Latest release: Mar 27, 2013
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: krawl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.61ms] Passed 4 tests

An overview of server-side resources used by BCD Roster Companion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.68 ▼3.54
Dashboard /wp-admin3.31 ▲0.0043.00 ▼5.70
Posts /wp-admin/edit.php3.36 ▲0.0045.56 ▼7.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.03 ▼13.31
Media Library /wp-admin/upload.php3.23 ▲0.0034.71 ▼2.26

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for BCD Roster Companion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.28 ▼1.371.92 ▲0.0237.19 ▼5.39
Dashboard /wp-admin2,206 ▲185.83 ▼0.1098.67 ▼12.4239.85 ▲0.59
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0039.75 ▲4.9433.83 ▲0.08
Add New Post /wp-admin/post-new.php1,514 ▼2017.53 ▼5.85655.17 ▼0.6660.50 ▲10.18
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.0893.71 ▼8.4043.78 ▼1.98

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bcd-roster-companion/includes/bcdrc-admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bcd-roster-companion/bcd-roster-companion.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === bcd-roster-companion === )
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

bcd-roster-companion/bcd-roster-companion.php Passed 13 tests

"BCD Roster Companion" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
Adds custom fields to the BCD Roster custom post type along with a new shortcode for displaying a new roster

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
There were no executable files found in this plugin241 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25831207
CSS15034

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin