89% gosign-notification-and-alert-block

Code Review | Gosign - Notification And Alert Block

WordPress plugin Gosign - Notification And Alert Block scored89%from 54 tests.

About plugin

  • Plugin page: gosign-notificati...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0+
  • WordPress version: 6.3.1
  • First release: Mar 21, 2019
  • Latest release: May 19, 2022
  • Number of updates: 20
  • Update frequency: every 57.9 days
  • Top authors: gosign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,772 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.21ms] Passed 4 tests

Server-side resources used by Gosign - Notification And Alert Block
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.74 ▼9.17
Dashboard /wp-admin3.31 ▲0.0150.11 ▲0.19
Posts /wp-admin/edit.php3.36 ▲0.0147.27 ▼2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.23 ▼8.48
Media Library /wp-admin/upload.php3.24 ▲0.0135.23 ▼4.59

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Gosign - Notification And Alert Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3914.85 ▲0.291.63 ▼0.3443.75 ▲2.64
Dashboard /wp-admin2,206 ▲155.78 ▲0.9199.41 ▼14.8239.16 ▼4.27
Posts /wp-admin/edit.php2,089 ▲32.01 ▲0.0034.56 ▼4.3033.76 ▼1.81
Add New Post /wp-admin/post-new.php6,363 ▲4,83025.74 ▲2.55937.09 ▲328.0551.57 ▼6.75
Media Library /wp-admin/upload.php1,385 ▼64.18 ▲0.01102.81 ▼2.2849.05 ▲3.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
No output text or server-side errors detected on direct access of PHP files

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 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Requires php: Version format is invalid
The official readme.txt is a good inspiration

gosign-notification-and-alert-block/plugin.php 85% from 13 tests

The entry point to "Gosign - Notification And Alert Block" version 1.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gosign-notification-and-alert-block.php" instead of "plugin.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin532 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23041321
Sass27090
Markdown130088
PHP284831
CSS2002

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin