74% fuel-bitcentral

Code Review | FUEL Bitcentral

WordPress plugin FUEL Bitcentral scored74%from 54 tests.

About plugin

  • Plugin page: fuel-bitcentral
  • Plugin version: 2.9
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: May 16, 2020
  • Latest release: Nov 5, 2023
  • Number of updates: 46
  • Update frequency: every 27.9 days
  • Top authors: donfuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,494 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲2.24ms] Passed 4 tests

This is a short check of server-side resources used by FUEL Bitcentral
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1347.20 ▲12.83
Dashboard /wp-admin3.43 ▲0.0955.75 ▼4.78
Posts /wp-admin/edit.php3.50 ▲0.1460.33 ▲12.11
Add New Post /wp-admin/post-new.php6.19 ▲0.3194.33 ▼8.13
Media Library /wp-admin/upload.php3.36 ▲0.1342.54 ▲9.76
Fuel Categories /wp-admin/edit-tags.php?taxonomy=fuel_category&post_type=fuel3.4943.24
Fuel Settings /wp-admin/options-general.php?page=fuel3.3442.26
Add New /wp-admin/post-new.php?post_type=fuel_importer3.5450.52
Fuel Tags /wp-admin/edit-tags.php?taxonomy=fuel_tag&post_type=fuel3.3743.11
Fuel Importer /wp-admin/edit.php?post_type=fuel_importer3.4243.71
Fuel /wp-admin/edit.php?post_type=fuel3.4244.50
Add New /wp-admin/post-new.php?post_type=fuel6.1991.36
Fuel Script /wp-admin/edit.php?post_type=fuel&page=fuel_script3.3441.19

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for FUEL Bitcentral
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,029 ▲24221.82 ▲7.4832.22 ▲30.3936.33 ▼2.63
Dashboard /wp-admin2,374 ▲20010.96 ▲5.31261.68 ▲165.9444.37 ▼2.98
Posts /wp-admin/edit.php2,315 ▲21510.53 ▲8.59104.71 ▲63.6934.42 ▼4.58
Add New Post /wp-admin/post-new.php6,962 ▲5,43526.47 ▲3.36782.12 ▲148.1261.69 ▲12.50
Media Library /wp-admin/upload.php1,599 ▲19612.47 ▲8.24153.07 ▲55.2542.32 ▲0.58
Fuel Categories /wp-admin/edit-tags.php?taxonomy=fuel_category&post_type=fuel1,48110.4292.7829.46
Fuel Settings /wp-admin/options-general.php?page=fuel1,44910.3978.5931.16
Add New /wp-admin/post-new.php?post_type=fuel_importer2,44411.19100.98151.45
Fuel Tags /wp-admin/edit-tags.php?taxonomy=fuel_tag&post_type=fuel1,46510.3684.2430.06
Fuel Importer /wp-admin/edit.php?post_type=fuel_importer1,32410.5384.5930.23
Fuel /wp-admin/edit.php?post_type=fuel1,34810.4781.7029.37
Add New /wp-admin/post-new.php?post_type=fuel2,35917.00810.77172.79
Fuel Script /wp-admin/edit.php?post_type=fuel&page=fuel_script1,11010.2578.9926.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_fuel_posts_hash
    • wp_fuel_script
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • 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
The following issues need your attention
  • 27× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fuel-bitcentral/shortcodes/list-tiles-tag.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_schedules() in wp-content/plugins/fuel-bitcentral/meta-box-form-mrss-importer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fuel-bitcentral/shortcodes/single-video-category.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fuel-bitcentral/shortcodes/list-tiles.php:13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/fuel-bitcentral/fuel-bitcentral.php on line 22
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/fuel-bitcentral/define.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/fuel-bitcentral/fuel-bitcentral.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/fuel-bitcentral/shortcodes/single-channel.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fuel-bitcentral/template/single-fuel.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/fuel-bitcentral/template/taxonomy-fuel-tag.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: display-fuel, bitcentral-fuel, fuel-videos

fuel-bitcentral/fuel-bitcentral.php Passed 13 tests

The main file in "FUEL Bitcentral" v. 2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
19 characters long description:
Display FUEL Videos

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected7,797 lines of code in 34 files:
LanguageFilesBlank linesComment linesLines of code
PHP241646883,609
JavaScript4953462,719
CSS5137181,456
SVG11013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
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%
Functions87
▷ Named functions8698.85%
▷ Anonymous functions11.15%
Constants6
▷ Global constants6100.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
11 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/share-icon.png1.49KB0.72KB▼ 52.00%
assets/images/fuel-add-media-button-image.png0.84KB0.63KB▼ 25.26%
assets/images/social/email.png2.02KB1.40KB▼ 30.33%
assets/images/embed-code.png18.48KB8.14KB▼ 55.98%
assets/images/play-button.png8.67KB7.18KB▼ 17.15%