83% bcd-roster

Code Review | BCD Roster

WordPress plugin BCD Roster scored83%from 54 tests.

About plugin

  • Plugin page: bcd-roster
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.2-3.4.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2012
  • Latest release: Nov 22, 2012
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: krawl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.13ms] Passed 4 tests

This is a short check of server-side resources used by BCD Roster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.75 ▼0.61
Dashboard /wp-admin3.33 ▼0.0149.28 ▼12.37
Posts /wp-admin/edit.php3.38 ▲0.0349.32 ▼3.30
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.00 ▼10.91
Media Library /wp-admin/upload.php3.26 ▲0.0334.73 ▼5.93
All Members /wp-admin/edit.php?post_type=bcd_cpt_member3.3047.71
Add New Member /wp-admin/post-new.php?post_type=bcd_cpt_member3.4155.07
Member Categories /wp-admin/edit-tags.php?taxonomy=bcd_tx_member_category&post_type=bcd_cpt_member3.2538.95

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BCD Roster
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8014.33 ▼0.051.70 ▼0.3545.26 ▲2.12
Dashboard /wp-admin2,226 ▲465.51 ▼0.0789.17 ▼6.7035.49 ▼4.45
Posts /wp-admin/edit.php2,131 ▲312.00 ▼0.0334.83 ▼6.3132.27 ▼5.02
Add New Post /wp-admin/post-new.php1,555 ▲2323.14 ▲0.01621.03 ▲11.7851.31 ▼5.68
Media Library /wp-admin/upload.php1,434 ▲314.18 ▲0.0097.57 ▲1.2144.86 ▼1.70
All Members /wp-admin/edit.php?post_type=bcd_cpt_member1,1041.9634.4129.33
Add New Member /wp-admin/post-new.php?post_type=bcd_cpt_member2,4427.66182.3969.16
Member Categories /wp-admin/edit-tags.php?taxonomy=bcd_tx_member_category&post_type=bcd_cpt_member1,3082.1229.6332.38

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • 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
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bcd-roster/bcd-roster.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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: Please replace "Plugin Name" with the name of your plugin on the first line ( === bcd-roster === )
  • Donate link: Invalid URI ("www.duhjones.com")
The official readme.txt might help

bcd-roster/bcd-roster.php 92% from 13 tests

The principal PHP file in "BCD Roster" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13420147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon-roster-page-32.png1.71KB1.49KB▼ 12.47%
images/icon-roster-page-32@2x.png3.60KB2.71KB▼ 24.74%
images/icon-roster-menu-16-sprite@2x.png3.11KB2.02KB▼ 34.94%
images/icon-roster-menu-16-sprite.png1.30KB1.18KB▼ 8.97%