84% blazing-companion

Code Review | Blazing Companion

WordPress plugin Blazing Companion scored 84% from 54 tests.

About plugin

  • Plugin page: blazing-companion
  • Plugin version: 1.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Mar 23, 2018
  • Latest release: Mar 31, 2018
  • Number of updates: 7
  • Update frequency: every 1.1 days
  • Top authors: ThemesApollo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,474 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
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.74ms] Passed 4 tests

This is a short check of server-side resources used by Blazing Companion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.32 ▼4.48
Dashboard /wp-admin3.38 ▲0.0749.00 ▼5.62
Posts /wp-admin/edit.php3.43 ▲0.0749.97 ▼0.87
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.02 ▼12.00
Media Library /wp-admin/upload.php3.30 ▲0.0733.78 ▲0.01

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Blazing Companion
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.61 ▼0.764.30 ▲2.2044.63 ▲1.32
Dashboard /wp-admin2,206 ▲154.85 ▼0.07107.61 ▼0.9239.46 ▼5.53
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0437.54 ▼3.4633.99 ▼3.48
Add New Post /wp-admin/post-new.php1,520 ▼2323.33 ▲4.80691.67 ▲35.7155.10 ▲1.28
Media Library /wp-admin/upload.php1,388 ▼04.43 ▲0.2598.44 ▼4.6043.43 ▲0.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blazing-companion/fields/repeater/inc/icons.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: slider, testimonial, blazing companion, blazing

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

Analyzing the main PHP file in "Blazing Companion" version 1.1
95 characters long description:
Companion for Blazing WordPress Theme. this plugin is to extend functionality of Blazing theme.

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
Everything looks great! No dangerous files found in this plugin4,257 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
CSS651162,444
PHP512448836
SVG100685
JavaScript58579292

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity22.00
▷ Minimum class complexity11.00
▷ Maximum class complexity33.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected