78% whizz

Code Review | WHIZZ

WordPress plugin WHIZZ scored78%from 54 tests.

About plugin

  • Plugin page: whizz
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.9.5
  • WordPress version: 6.3.1
  • First release: May 9, 2015
  • Latest release: Apr 19, 2018
  • Number of updates: 121
  • Update frequency: every 8.9 days
  • Top authors: browserweb (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,693 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.54ms] Passed 4 tests

Analyzing server-side resources used by WHIZZ
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.38 ▼2.42
Dashboard /wp-admin3.39 ▲0.0946.76 ▼5.21
Posts /wp-admin/edit.php3.44 ▲0.0852.01 ▲4.28
Add New Post /wp-admin/post-new.php5.99 ▲0.1097.50 ▼2.82
Media Library /wp-admin/upload.php3.31 ▲0.0841.32 ▲5.98
Plugins /wp-admin/admin.php?page=plugin-list3.4835.98
WHIZZ Support /wp-admin/admin.php?page=whizz-support3.3432.69
WHIZZ Features /wp-admin/admin.php?page=whizz-plugin3.3233.40
Modal /wp-admin/admin.php?page=whizz_modal3.2835.92
Users /wp-admin/admin.php?page=users-list3.3936.86
Menus /wp-admin/admin.php?page=whizz_menus3.2834.11
Colorize /wp-admin/admin.php?page=colorize_menus3.2832.99

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 98 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
1_item_per_page
theysaidso_admin_options
widget_theysaidso_widget
0_item_per_page
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WHIZZ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,618 ▲87215.80 ▲1.196.37 ▲4.3026.46 ▼15.44
Dashboard /wp-admin2,828 ▲6406.67 ▲1.76153.59 ▲34.9879.03 ▲33.10
Posts /wp-admin/edit.php2,342 ▲2502.75 ▲0.7268.05 ▲27.0635.85 ▼0.16
Add New Post /wp-admin/post-new.php1,765 ▲22223.69 ▲5.41726.16 ▲73.1935.15 ▼29.87
Media Library /wp-admin/upload.php1,631 ▲2465.04 ▲0.81127.57 ▲21.6647.66 ▲5.81
Plugins /wp-admin/admin.php?page=plugin-list1,3492.6254.0832.45
WHIZZ Support /wp-admin/admin.php?page=whizz-support1,3982.4443.5842.19
WHIZZ Features /wp-admin/admin.php?page=whizz-plugin1,1192.3543.3340.88
Modal /wp-admin/admin.php?page=whizz_modal1,1802.4241.9828.11
Users /wp-admin/admin.php?page=users-list1,2852.6245.0336.35
Menus /wp-admin/admin.php?page=whizz_menus1,0572.4645.6028.24
Colorize /wp-admin/admin.php?page=colorize_menus1,2923.1259.6529.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • 0_item_per_page
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please fix the following items
  • 10× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/whizz/colorize/index.php
    • > /wp-content/plugins/whizz/plugins/plugin-list.php
    • > /wp-content/plugins/whizz/plugins/index.php
    • > /wp-content/plugins/whizz/users/delete-user.php
    • > /wp-content/plugins/whizz/colorize/index_bar_menu.php
    • > /wp-content/plugins/whizz/modal/index.php
    • > /wp-content/plugins/whizz/users/user-list.php
    • > /wp-content/plugins/whizz/colorize/index-rearrange.php
    • > /wp-content/plugins/whizz/plugins/delete-plugin.php
    • > /wp-content/plugins/whizz/users/index.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/whizz/center-body.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/whizz/index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/whizz/center-content-support.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: wordpress dashboard, wordpress users, wordpress widgets, wordpress menus, wp-admin...

whizz/index.php 85% from 13 tests

The principal PHP file in "WHIZZ" v. 1.1.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("whizz.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 193 characters long)

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
Success! There were no dangerous files found in this plugin12,722 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP161781264,870
CSS154,9213724,800
PO File5829101,703
JavaScript61,3481081,310
SVG10139

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.62
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%
Functions86
▷ Named functions86100.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
44 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/plugin-medium-logo.png3.35KB0.50KB▼ 85.06%
images/fixed-logo.png1.60KB0.70KB▼ 56.23%
images/paint_brush.png4.35KB1.82KB▼ 58.20%
images/logo_whizz.png2.45KB1.82KB▼ 25.92%
images/latest-update.png0.71KB0.81KB0.00%