10% britetechs-companion

Code Review | Britetechs Companion

WordPress plugin Britetechs Companion scored10%from 54 tests.

About plugin

  • Plugin page: britetechs-companion
  • Plugin version: 1.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 21, 2018
  • Latest release: Nov 18, 2023
  • Number of updates: 45
  • Update frequency: every 41.9 days
  • Top authors: britetechs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /59,693 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

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

This is a short check of server-side resources used by Britetechs Companion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.55 ▲1.05
Dashboard /wp-admin3.31 ▼0.0344.16 ▼17.55
Posts /wp-admin/edit.php3.37 ▲0.0144.61 ▼2.92
Add New Post /wp-admin/post-new.php5.89 ▲0.0181.22 ▼9.85
Media Library /wp-admin/upload.php3.24 ▲0.0131.49 ▲0.49

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 121 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
home_and_blog_activate
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Britetechs Companion
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,785 ▲2314.57 ▼0.161.64 ▼0.0339.96 ▼2.84
Dashboard /wp-admin2,195 ▲145.62 ▼0.0690.02 ▼12.7138.62 ▲0.10
Posts /wp-admin/edit.php2,109 ▲61.94 ▼0.0241.35 ▲2.2334.87 ▲0.93
Add New Post /wp-admin/post-new.php1,526 ▼322.94 ▼0.18618.96 ▼56.4055.51 ▲2.14
Media Library /wp-admin/upload.php1,400 ▼04.16 ▼0.0998.98 ▲3.5744.80 ▲0.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • home_and_blog_activate
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 72× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/britetechs-companion/inc/jewelry-store/section-all/section-testimonial.php:127
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/britetechs-companion/inc/bizcor/customizer/options/customizer-header.php:246
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/britetechs-companion/inc/jewelry-store/section-all/section-slider.php:95
    • > PHP Warning
      Use of undefined constant bc_plugin_dir - assumed 'bc_plugin_dir' (this will throw an Error in a future version of PHP) in wp-content/plugins/britetechs-companion/inc/jewelry-store/required-plugin/index.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/britetechs-companion/inc/hotelone/init.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/britetechs-companion/inc/hotelone/customizer/sections/customizer-slider.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/britetechs-companion/inc/jewelry-store/customizer/customizer-shop.php:117
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/britetechs-companion/inc/businesswp/sections/section-team.php:100
    • > PHP Fatal error
      require_once(): Failed opening required 'bc_plugin_dirinc/hotelone/required-plugin/class-tgm-plugin-activation.php' (include_path='.:/usr/share/php') in wp-content/plugins/britetechs-companion/inc/hotelone/required-plugin/index.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/britetechs-companion/inc/jewelry-store/section-all/section-shop.php:181

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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
No plugin tags provided

britetechs-companion/britetechs-companion.php Passed 13 tests

The entry point to "Britetechs Companion" version 1.9.6 is a PHP file that has certain tags in its header comment area
57 characters long description:
Enhances britetechs themes with additional functionality.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin11,015 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
PHP721,2631,9189,377
XML126161,638

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity34.85
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods208
▷ Static methods115.29%
▷ Public methods16277.88%
▷ Protected methods4622.12%
▷ Private methods00.00%
Functions104
▷ Named functions104100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 10.74MB with 6.20MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/businesswp/img/project1.png711.52KB306.19KB▼ 56.97%
inc/businesswp/img/team4.png949.88KB359.55KB▼ 62.15%
inc/businesswp/img/slide1.png1,183.59KB481.62KB▼ 59.31%
inc/businesswp/img/team2.png674.59KB322.95KB▼ 52.13%
inc/businesswp/img/project3.png1,087.45KB455.64KB▼ 58.10%