83% ublux-wsp

Code Review | Ublux wspp

WordPress plugin Ublux wspp scored83%from 54 tests.

About plugin

  • Plugin page: ublux-wsp
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Jul 17, 2022
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: ublux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,139 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

A check of server-side resources used by Ublux wspp
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.40 ▲3.59
Dashboard /wp-admin3.31 ▲0.0152.41 ▲4.68
Posts /wp-admin/edit.php3.37 ▲0.0148.18 ▼0.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.97 ▼20.19
Media Library /wp-admin/upload.php3.24 ▲0.0134.19 ▲0.81
Ublux wspp settings /wp-admin/options-general.php?page=ublux_wspp3.2131.26

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
Just a few items left to fix
  • Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/ublux-wsp/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/ublux-wsp/assets/banner-1544\303\227500.png"
    • (new file) "wp-content/plugins/ublux-wsp/assets/icon-256\303\227256.png"
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ublux wspp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲13213.44 ▼0.848.45 ▲6.6947.19 ▲7.77
Dashboard /wp-admin2,206 ▲325.53 ▼0.0982.53 ▼5.0738.05 ▼3.99
Posts /wp-admin/edit.php2,111 ▲112.03 ▼0.0136.25 ▲0.1132.88 ▲1.34
Add New Post /wp-admin/post-new.php1,545 ▲818.25 ▼0.01609.45 ▼47.3264.24 ▲0.87
Media Library /wp-admin/upload.php1,405 ▲84.22 ▲0.0394.44 ▼23.6041.30 ▼7.48
Ublux wspp settings /wp-admin/options-general.php?page=ublux_wspp9161.6722.3323.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/ublux-wsp/settings_form.php
    • > /wp-content/plugins/ublux-wsp/index.php
    • > /wp-content/plugins/ublux-wsp/wspp_widget.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Bubble: screenshot-1)
You can take inspiration from this readme.txt

ublux-wsp/index.php 92% from 13 tests

The main PHP script in "Ublux wspp" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ublux-wsp.php" instead of "index.php")

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 plugin321 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3319175
CSS1220116
JavaScript17030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544×500.png62.09KB16.41KB▼ 73.57%
(invalid) assets/wspp_logo.png34.95KB0.00KB▼ 100.00%
assets/wspp_close.png0.80KB0.90KB0.00%
assets/icon-256×256.png34.59KB14.09KB▼ 59.27%
assets/wspp_send.png15.90KB6.52KB▼ 59.01%