84% unotify

Code Review | Unotify Plugin

WordPress plugin Unotify Plugin scored84%from 54 tests.

About plugin

  • Plugin page: unotify
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.1
  • WordPress version: 6.3.1
  • First release: May 4, 2020
  • Latest release: May 4, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: unotify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Unotify Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0149.27 ▲7.32
Dashboard /wp-admin3.31 ▲0.0150.21 ▲0.18
Posts /wp-admin/edit.php3.36 ▲0.0147.27 ▼0.85
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.95 ▼3.75
Media Library /wp-admin/upload.php3.24 ▲0.0136.81 ▲3.52

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Unotify Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8514.43 ▼0.241.85 ▲0.0841.70 ▲2.79
Dashboard /wp-admin2,221 ▲365.83 ▼0.0398.31 ▼3.4465.86 ▲23.62
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0338.74 ▼1.1834.54 ▼4.36
Add New Post /wp-admin/post-new.php1,689 ▲15524.42 ▲1.21679.95 ▲81.1554.60 ▼2.55
Media Library /wp-admin/upload.php1,403 ▲154.21 ▼0.0896.93 ▲0.3773.23 ▲30.46

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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 everything seems fine, this is not 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
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/unotify/UNotify.php
    • > /wp-content/plugins/unotify/settings/options.php

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 96% from 29 tests

readme.txt Passed 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
6 plugin tags: woocommerce, social proof, fomo, notifications, sales...

unotify/UNotify.php 92% from 13 tests

The primary PHP file in "Unotify Plugin" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("unotify.php" instead of "UNotify.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin75 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP220975

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
unotify_icon.png3.41KB0.80KB▼ 76.45%