84% big-boom-directory

Code Review | Big Boom Directory

WordPress plugin Big Boom Directory scored84%from 54 tests.

About plugin

  • Plugin page: big-boom-directory
  • Plugin version: 2.4.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Jul 14, 2022
  • Number of updates: 35
  • Update frequency: every 66.0 days
  • Top authors: michaelhull (65.71%)bigboomdesign (37.14%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,728 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.37MB] [CPU: ▲4.22ms] Passed 4 tests

Server-side resources used by Big Boom Directory
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.45 ▲0.9948.66 ▲5.99
Dashboard /wp-admin4.85 ▲1.5560.83 ▲13.05
Posts /wp-admin/edit.php4.88 ▲1.5253.55 ▲7.59
Add New Post /wp-admin/post-new.php7.39 ▲1.5193.31 ▼9.76
Media Library /wp-admin/upload.php4.71 ▲1.4851.20 ▲17.47
Taxonomies /wp-admin/edit.php?post_type=bbd_tax4.8243.61
Settings /wp-admin/edit.php?post_type=bbd_pt&page=bbd-settings4.6943.82
Post Types /wp-admin/edit.php?post_type=bbd_pt4.8243.79
Cache /wp-admin/edit.php?post_type=bbd_pt&page=bbd-cache4.6843.49
Information /wp-admin/edit.php?post_type=bbd_pt&page=bbd-information4.7243.27

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 325 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_bbd_search_widget
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Big Boom Directory: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲16413.30 ▼1.072.18 ▲0.0159.34 ▲13.97
Dashboard /wp-admin2,274 ▲864.92 ▼0.98114.60 ▲8.2142.21 ▼2.17
Posts /wp-admin/edit.php2,127 ▲382.06 ▲0.0338.15 ▲1.5140.18 ▲6.20
Add New Post /wp-admin/post-new.php1,641 ▲9423.35 ▲5.13635.19 ▲28.4755.72 ▼9.95
Media Library /wp-admin/upload.php1,447 ▲594.27 ▲0.0896.34 ▼0.9743.70 ▲2.58
Taxonomies /wp-admin/edit.php?post_type=bbd_tax1,1092.1138.9329.28
Settings /wp-admin/edit.php?post_type=bbd_pt&page=bbd-settings1,1431.7624.8233.15
Post Types /wp-admin/edit.php?post_type=bbd_pt1,1091.9933.1126.53
Cache /wp-admin/edit.php?post_type=bbd_pt&page=bbd-cache8471.7626.4625.67
Information /wp-admin/edit.php?post_type=bbd_pt&page=bbd-information2,5861.8928.4462.52

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_bbd_search_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/big-boom-directory/assets/extended-taxos/extended-taxos.php:895
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/big-boom-directory/assets/cmb2/example-functions.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/big-boom-directory/big-boom-directory.php:323
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/big-boom-directory/assets/cmb2/init.php:119
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/big-boom-directory/lib/class-bbd-options.php:815
    • > PHP Fatal error
      Uncaught Error: Class 'BBD_Post' not found in wp-content/plugins/big-boom-directory/lib/class-bbd-pt.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/big-boom-directory/lib/widgets/class-bbd-search-widget.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'BBD_Post' not found in wp-content/plugins/big-boom-directory/lib/class-bbd-tax.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: custom-fields, custom-post-type, directory, taxonomy, post-type

big-boom-directory/big-boom-directory.php Passed 13 tests

The entry point to "Big Boom Directory" version 2.4.9 is a PHP file that has certain tags in its header comment area
78 characters long description:
Directory management system based on Custom Post Types, Taxonomies, and Fields

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin50,561 lines of code in 178 files:
LanguageFilesBlank linesComment linesLines of code
PO File11912,73116,33529,151
CSS142,2132,1189,601
PHP303,1456,4019,165
JavaScript114665631,311
Markdown34290812
HTML12840521

PHP code Passed 2 tests

Analyzing 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.50
Average class complexity48.91
▷ Minimum class complexity3.00
▷ Maximum class complexity166.00
Average method complexity4.96
▷ Minimum method complexity1.00
▷ Maximum method complexity42.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes12.86%
▷ Concrete classes3497.14%
▷ Final classes00.00%
Methods425
▷ Static methods12830.12%
▷ Public methods40795.76%
▷ Protected methods153.53%
▷ Private methods30.71%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/cmb2/images/ui-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
assets/cmb2/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
assets/cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
assets/cmb2/images/ico-delete.png0.70KB0.72KB0.00%
assets/lightbox/img/close.png0.27KB0.29KB0.00%