83% breezetactfreemium

Code Review | BreezeTact

WordPress plugin BreezeTact scored83%from 54 tests.

About plugin

  • Plugin page: breezetactfreemium
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.2
  • WordPress version: 6.3.1
  • First release: Nov 6, 2017
  • Latest release: May 16, 2018
  • Number of updates: 27
  • Update frequency: every 7.9 days
  • Top authors: breezemaxweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /841 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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼4.79ms] Passed 4 tests

A check of server-side resources used by BreezeTact
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0730.08 ▼9.59
Dashboard /wp-admin3.32 ▲0.0252.88 ▲1.66
Posts /wp-admin/edit.php3.37 ▲0.0247.86 ▼3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.03105.38 ▼2.51
Media Library /wp-admin/upload.php3.24 ▲0.0234.35 ▼3.21

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

BreezeTact: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲11313.21 ▼1.161.94 ▲0.2742.18 ▼3.40
Dashboard /wp-admin2,218 ▲275.89 ▲0.83101.16 ▼5.8038.67 ▼1.46
Posts /wp-admin/edit.php2,107 ▲182.08 ▲0.0437.12 ▼0.0930.66 ▼5.65
Add New Post /wp-admin/post-new.php1,547 ▲1818.33 ▲0.10636.57 ▲4.0047.89 ▼11.02
Media Library /wp-admin/upload.php1,406 ▲154.29 ▲0.0898.71 ▼4.2937.77 ▼5.31

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× 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/breezetactfreemium/breezetact.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% 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
These attributes need your attention:
  • Contributors: Contributors not specified
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in breezetactfreemium/assets to your readme.txt
The official readme.txt might help

breezetactfreemium/breezetact.php 92% from 13 tests

The entry point to "BreezeTact" version 2.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("breezetactfreemium.php" instead of "breezetact.php")

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 plugin1,727 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13271611,356
PHP194101293
CSS222078

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/BreezeTact-Logo-Watermark.png28.75KB12.78KB▼ 55.53%