83% frontend-dashboard-notification

Code Review | Frontend Dashboard Notification

WordPress plugin Frontend Dashboard Notification scored83%from 54 tests.

About plugin

  • Plugin page: frontend-dashboar...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4.1
  • WordPress version: 6.3.1
  • First release: May 27, 2020
  • Latest release: May 27, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.17ms] Passed 4 tests

Server-side resources used by Frontend Dashboard Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.16 ▼6.98
Dashboard /wp-admin3.31 ▲0.0046.96 ▼10.24
Posts /wp-admin/edit.php3.36 ▲0.0047.92 ▲0.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.29 ▲4.49
Media Library /wp-admin/upload.php3.23 ▲0.0038.77 ▲5.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Frontend Dashboard Notification
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7414.76 ▲0.391.81 ▼0.3542.92 ▼2.54
Dashboard /wp-admin2,218 ▲304.85 ▼1.06119.67 ▲8.0343.47 ▼1.29
Posts /wp-admin/edit.php2,098 ▲91.98 ▼0.0237.14 ▲1.9433.48 ▼4.77
Add New Post /wp-admin/post-new.php1,544 ▲2023.36 ▲0.13667.66 ▼8.2254.35 ▲4.00
Media Library /wp-admin/upload.php1,400 ▲124.18 ▼0.0195.83 ▼2.6742.04 ▲0.43

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/frontend-dashboard-notification/assets/enqueue.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3 in frontend-dashboard-notification/assets to your readme.txt
The official readme.txt might help

frontend-dashboard-notification/frontend-dashboard-notification.php 92% from 13 tests

This is the main PHP file of "Frontend Dashboard Notification" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected553 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP868164522
JavaScript11020
CSS12011

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.41
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods1292.31%
▷ Protected methods00.00%
▷ Private methods17.69%
Functions8
▷ Named functions450.00%
▷ Anonymous functions450.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin