84% sb-tbfa

Code Review | Bootstrap and Font Awesome by HocWP Team

WordPress plugin Bootstrap and Font Awesome by HocWP Team scored 84% from 54 tests.

About plugin

  • Plugin page: sb-tbfa
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Sep 22, 2014
  • Latest release: Sep 26, 2017
  • Number of updates: 19
  • Update frequency: every 57.8 days
  • Top authors: skylarkcob (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 2,255 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▼3.99ms] Passed 4 tests

Server-side resources used by Bootstrap and Font Awesome by HocWP Team
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.55 ▼3.27
Dashboard /wp-admin3.31 ▲0.0044.26 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0046.08 ▼10.97
Add New Post /wp-admin/post-new.php5.89 ▲0.00101.92 ▲9.12
Media Library /wp-admin/upload.php3.23 ▲0.0031.65 ▼0.25

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bootstrap and Font Awesome by HocWP Team
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲15413.69 ▼0.697.17 ▲5.3550.71 ▲1.57
Dashboard /wp-admin2,206 ▲154.85 ▼0.05109.65 ▲8.5539.88 ▼7.33
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0539.19 ▼3.6233.64 ▼3.19
Add New Post /wp-admin/post-new.php1,529 ▲1523.45 ▲5.64678.42 ▲4.4655.38 ▲9.02
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0694.71 ▼8.8244.99 ▼5.28

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just 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 plugins_url() in wp-content/plugins/sb-tbfa/sb-tbfa.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Screenshots: Please describe screenshot #1 in sb-tbfa/assets to your readme.txt
You can take inspiration from this readme.txt

sb-tbfa/sb-tbfa.php 92% from 13 tests

"Bootstrap and Font Awesome by HocWP Team" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin14,252 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS67379,653
SVG2002,959
JavaScript35822041,611
PO File10018
PHP231111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin