84% notification-box-lite

Code Review | Notification Box Lite Version

WordPress plugin Notification Box Lite Version scored84%from 54 tests.

About plugin

  • Plugin page: notification-box-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2016
  • Latest release: Mar 10, 2016
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: notificationbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,900 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.69ms] Passed 4 tests

Analyzing server-side resources used by Notification Box Lite Version
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1842.29 ▲4.29
Dashboard /wp-admin3.11 ▼0.1926.67 ▼19.10
Posts /wp-admin/edit.php3.51 ▲0.1545.66 ▼0.36
Add New Post /wp-admin/post-new.php6.04 ▲0.1582.68 ▼4.73
Media Library /wp-admin/upload.php3.38 ▲0.1536.96 ▲1.45
Notification Box Lite /wp-admin/options-general.php?page=notification_box_settings3.3230.95

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Notification Box Lite Version
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.85 ▼0.4321.32 ▲19.5342.22 ▲2.22
Dashboard /wp-admin2,210 ▲285.90 ▲0.01109.72 ▲5.8539.52 ▼6.14
Posts /wp-admin/edit.php2,093 ▲42.03 ▼0.0138.43 ▲0.5034.87 ▼2.01
Add New Post /wp-admin/post-new.php1,531 ▲1223.36 ▲0.32664.12 ▼7.4754.92 ▼8.25
Media Library /wp-admin/upload.php1,392 ▲44.14 ▼0.03110.90 ▲12.2747.25 ▲3.54
Notification Box Lite /wp-admin/options-general.php?page=notification_box_settings1,0252.0424.2325.58

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=notification_box_settings
    • > Notice in wp-content/plugins/notification-box-lite/notification-box-admin.php+18
    Undefined variable: danw_action

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === notification-box-lite === )
Please take inspiration from this readme.txt

notification-box-lite/notification-box-lite.php 92% from 13 tests

The main PHP script in "Notification Box Lite Version" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 414 characters long)

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
Everything looks great! No dangerous files found in this plugin555 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27231389
JavaScript18184
CSS111282

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions12
▷ Named functions12100.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
PNG images were not found in this plugin