77% brevz-keep-your-users-in-touch-with-notifications-and-changelogs

Code Review | Brevz - Changelogs & Notifications

WordPress plugin Brevz - Changelogs & Notifications scored77%from 54 tests.

About plugin

  • Plugin page: brevz-keep-your-u...
  • Plugin version: 0.2
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 9, 2021
  • Number of updates: 7
  • Update frequency: every 1.6 days
  • Top authors: brevzio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /309 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.01MB] [CPU: ▼12.35ms] Passed 4 tests

Server-side resources used by Brevz - Changelogs & Notifications
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.05 ▼4.00
Dashboard /wp-admin3.33 ▼0.0250.64 ▼25.34
Posts /wp-admin/edit.php3.38 ▲0.0247.22 ▼0.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.07 ▼19.44
Media Library /wp-admin/upload.php3.25 ▲0.0237.23 ▼0.46

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Brevz - Changelogs & Notifications
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8013.19 ▼1.221.70 ▲0.0538.40 ▼3.13
Dashboard /wp-admin2,233 ▲515.84 ▼0.02111.33 ▲4.3879.73 ▲35.34
Posts /wp-admin/edit.php2,118 ▲292.00 ▼0.0038.42 ▲1.8235.45 ▼2.86
Add New Post /wp-admin/post-new.php1,538 ▲1917.72 ▼5.42726.27 ▲51.1252.45 ▼8.17
Media Library /wp-admin/upload.php1,414 ▲264.24 ▼0.0194.42 ▼15.7386.84 ▲40.17

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/brevz-keep-your-users-in-touch-with-notifications-and-changelogs/sw.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/brevz-keep-your-users-in-touch-with-notifications-and-changelogs/brevz.php:15

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: Please take inspiration from this readme.txt

brevz-keep-your-users-in-touch-with-notifications-and-changelogs/brevz.php 77% from 13 tests

The main file in "Brevz - Changelogs & Notifications" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("brevz-keep-your-users-in-touch-with-notifications-and-changelogs.php" instead of "brevz.php")
  • Description: The description should be shorter than 140 characters (currently 300 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected177 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22519121
Markdown131056

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin