83% wt-display-breeze

Code Review | Breeze Display

WordPress plugin Breeze Display scored83%from 54 tests.

About plugin

  • Plugin page: wt-display-breeze
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 15, 2016
  • Latest release: Oct 4, 2023
  • Number of updates: 12
  • Update frequency: every 206.8 days
  • Top authors: mgyura (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,369 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.06MB] [CPU: ▲1.36ms] Passed 4 tests

This is a short check of server-side resources used by Breeze Display
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0847.65 ▲2.74
Dashboard /wp-admin3.37 ▲0.0357.70 ▼1.08
Posts /wp-admin/edit.php3.42 ▲0.0755.21 ▲1.29
Add New Post /wp-admin/post-new.php5.95 ▲0.07100.59 ▲7.11
Media Library /wp-admin/upload.php3.29 ▲0.0739.99 ▲2.47
Breeze Settings /wp-admin/options-general.php?page=wt-breeze-settings3.2638.96

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Breeze Display
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.36 ▼0.811.97 ▲0.2545.20 ▲0.55
Dashboard /wp-admin2,215 ▲275.84 ▲0.9399.49 ▼15.7037.26 ▼3.02
Posts /wp-admin/edit.php2,100 ▲82.04 ▲0.0636.69 ▼5.5334.27 ▼2.25
Add New Post /wp-admin/post-new.php1,544 ▲3023.43 ▲5.89681.73 ▲18.4455.61 ▲6.23
Media Library /wp-admin/upload.php1,397 ▲94.22 ▼0.0396.61 ▼4.2442.99 ▲0.32
Breeze Settings /wp-admin/options-general.php?page=wt-breeze-settings1,2292.1528.4328.45

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • 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 | This is a short smoke test looking for 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
Please fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wt-display-breeze/includes/widgets.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wt-display-breeze/includes/shortcodes.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wt-display-breeze/wt-breeze.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Breeze' not found in wp-content/plugins/wt-display-breeze/includes/process-feeds.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wt-display-breeze/includes/options.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wt-display-breeze/wt-breeze.php 85% from 13 tests

The main PHP file in "Breeze Display" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wt-display-breeze.php" instead of "wt-breeze.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 343 characters long)

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
There were no executable files found in this plugin1,585 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP82451021,573
CSS13112

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity24.33
▷ Minimum class complexity5.00
▷ Maximum class complexity46.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected