90% easy-notification-bar

Code Review | Easy Notification Bar

WordPress plugin Easy Notification Bar scored90%from 54 tests.

About plugin

  • Plugin page: easy-notification...
  • Plugin version: 1.4.8
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2019
  • Latest release: Nov 2, 2023
  • Number of updates: 33
  • Update frequency: every 48.4 days
  • Top authors: WPExplorer (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

7,000+ active /78,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.33ms] Passed 4 tests

A check of server-side resources used by Easy Notification Bar
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.74 ▲0.96
Dashboard /wp-admin3.41 ▲0.0648.65 ▼18.05
Posts /wp-admin/edit.php3.53 ▲0.1746.45 ▼2.55
Add New Post /wp-admin/post-new.php5.99 ▲0.1082.33 ▼11.68
Media Library /wp-admin/upload.php3.33 ▲0.1034.83 ▼1.04

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Notification Bar
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.21 ▼0.341.69 ▲0.0942.53 ▼1.57
Dashboard /wp-admin2,192 ▲215.65 ▲0.08113.56 ▲23.3348.04 ▲4.41
Posts /wp-admin/edit.php2,097 ▼31.99 ▲0.0337.27 ▲0.5532.13 ▼1.87
Add New Post /wp-admin/post-new.php1,526 ▼023.64 ▼0.08640.70 ▼56.8756.37 ▼0.48
Media Library /wp-admin/upload.php1,400 ▼34.20 ▲0.0094.67 ▼4.2142.45 ▼4.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed: The official readme.txt might help

easy-notification-bar/easy-notification-bar.php Passed 13 tests

Analyzing the main PHP file in "Easy Notification Bar" version 1.4.8
48 characters long description:
Easily display a notice at the top of your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin774 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2156286595
CSS2232123
JavaScript117056

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity63.00
▷ Minimum class complexity63.00
▷ Maximum class complexity63.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods24
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin