68% breezeview

Code Review | BreezeView

WordPress plugin BreezeView scored68%from 54 tests.

About plugin

  • Plugin page: breezeview
  • Plugin version: 3.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.3
  • WordPress version: 6.3.1
  • First release: May 12, 2018
  • Latest release: May 29, 2018
  • Number of updates: 7
  • Update frequency: every 2.4 days
  • Top authors: breezemaxweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,048 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼19.89ms] Passed 4 tests

Analyzing server-side resources used by BreezeView
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0332.40 ▼10.07
Dashboard /wp-admin3.13 ▼0.1830.77 ▼23.36
Posts /wp-admin/edit.php3.27 ▼0.1037.33 ▼17.16
Add New Post /wp-admin/post-new.php5.49 ▼0.4071.75 ▼28.96
Media Library /wp-admin/upload.php3.20 ▼0.0435.41 ▼1.18

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 52 new files
Database: 1 new table, 7 new options
New tables
wp_bv_gr_clicks_impressions
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
jal_db_version

Browser metrics Passed 4 tests

An overview of browser requirements for BreezeView
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,846 ▲8514.30 ▼0.4327.43 ▲25.7045.52 ▲4.22
Dashboard /wp-admin2,193 ▲125.62 ▼0.0783.37 ▼28.7236.39 ▼1.56
Posts /wp-admin/edit.php2,102 ▲22.02 ▼0.0635.70 ▼8.5631.67 ▼8.22
Add New Post /wp-admin/post-new.php1,680 ▲15422.17 ▼0.86676.37 ▲43.9549.30 ▲4.49
Media Library /wp-admin/upload.php1,399 ▲54.19 ▲0.02111.88 ▲8.3748.99 ▲5.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_bv_gr_clicks_impressions
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • jal_db_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/breezeview/dist/php/updatedt.php
    • > /wp-content/plugins/breezeview/dist/php/getdt.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/breezeview/breezeview.php:11
    • > WordPress database error Column 'dttype' cannot be null for query INSERT INTO `wp_bv_gr_clicks_impressions` (`time`, `dttype`) VALUES ('2023-10-18', NULL)
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezeview/dist/php/getdt.php on line 3
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/breezeview/dist/php/updatedt.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #0 in breezeview/assets to your readme.txt
The official readme.txt is a good inspiration

breezeview/breezeview.php Passed 13 tests

The entry point to "BreezeView" version 3.0.3 is a PHP file that has certain tags in its header comment area
46 characters long description:
Helps you display your business Google Reviews

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin14,621 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
CSS391947913,204
JavaScript52592121,014
PHP316651403

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
dist/images/Google-Button-Powered-by-Google.png53.78KB13.54KB▼ 74.82%
dist/images/close-icon.png0.61KB0.30KB▼ 49.84%