84% notifyit

Code Review | Notifyit

WordPress plugin Notifyit scored84%from 54 tests.

About plugin

  • Plugin page: notifyit
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2015
  • Latest release: Aug 19, 2022
  • Number of updates: 7
  • Update frequency: every 390.3 days
  • Top authors: kroozz (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /645 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.18ms] Passed 4 tests

This is a short check of server-side resources used by Notifyit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0343.76 ▼1.65
Dashboard /wp-admin3.34 ▼0.0052.84 ▼11.56
Posts /wp-admin/edit.php3.46 ▲0.1050.82 ▲2.00
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.76 ▲0.56
Media Library /wp-admin/upload.php3.27 ▲0.0435.49 ▼0.06
Notifyit /wp-admin/options-general.php?page=notify3.2335.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Notifyit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.73 ▼0.573.77 ▲2.0443.11 ▼2.37
Dashboard /wp-admin2,213 ▲254.82 ▼1.03115.91 ▲10.5740.27 ▼1.56
Posts /wp-admin/edit.php2,096 ▲101.97 ▼0.0334.72 ▼4.7232.46 ▼4.51
Add New Post /wp-admin/post-new.php1,520 ▼1317.59 ▼5.49690.45 ▼3.4753.84 ▼6.28
Media Library /wp-admin/upload.php1,392 ▲74.25 ▲0.05127.01 ▲18.3451.83 ▲3.84
Notifyit /wp-admin/options-general.php?page=notify8952.0226.6931.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=notify
    • > Rendering (warning) in unknown
    /wp-admin/options-general.php?page=notify 150 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.

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 require attention:
  • Screenshots: Screenshot #1 (Notifyit settings) image required
You can take inspiration from this readme.txt

notifyit/notifyit.php 92% from 13 tests

The main PHP script in "Notifyit" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,389 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS2167231,071
PHP44028162
JavaScript43179156

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.50
▷ Minimum class complexity5.00
▷ Maximum class complexity6.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png33.47KB11.92KB▼ 64.40%