78% yournotify

Code Review | Yournotify

WordPress plugin Yournotify scored 78% from 54 tests.

About plugin

  • Plugin page: yournotify
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.1
  • WordPress version: 6.3.1
  • First release: May 25, 2022
  • Latest release: Apr 2, 2023
  • Number of updates: 19
  • Update frequency: every 16.4 days
  • Top authors: yournotify (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 231 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.06MB] [CPU: ▼0.79ms] Passed 4 tests

Analyzing server-side resources used by Yournotify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.06 ▼5.20
Dashboard /wp-admin3.36 ▲0.0547.02 ▼3.66
Posts /wp-admin/edit.php3.41 ▲0.0549.51 ▲3.47
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.62 ▲9.73
Media Library /wp-admin/upload.php3.28 ▲0.0537.48 ▲2.23

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
widget_yournotify_subscribe
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Yournotify
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,888 ▲15313.59 ▼0.844.98 ▲3.2937.51 ▼6.03
Dashboard /wp-admin2,211 ▲204.86 ▼0.07110.02 ▲9.3940.41 ▼4.01
Posts /wp-admin/edit.php2,094 ▲52.01 ▲0.0038.95 ▲3.2133.84 ▼3.61
Add New Post /wp-admin/post-new.php1,542 ▲1418.66 ▲0.25597.08 ▼24.4154.58 ▼4.38
Media Library /wp-admin/upload.php1,393 ▲24.21 ▲0.0193.69 ▼8.0242.98 ▼1.86

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_yournotify_subscribe
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/yournotify/yournotify.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/yournotify/inc/yournotify-subscribe.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Widget settings), #2 (Widget frontend with basic design), #3 (Widget frontend with styled design)
You can look at the official readme.txt

yournotify/yournotify.php 92% from 13 tests

"Yournotify" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 202 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
No dangerous file extensions were detected381 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP26183181
JavaScript22531135
CSS14054
SVG10011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity9.00
▷ Minimum class complexity6.00
▷ Maximum class complexity12.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods436.36%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png9.30KB3.61KB▼ 61.12%
assets/icon-256x256.png16.72KB5.88KB▼ 64.87%