90% wp-growl-notifications

Code Review | WP Growl

WordPress plugin WP Growl scored90%from 54 tests.

About plugin

  • Plugin page: wp-growl-notifica...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2017
  • Latest release: Mar 27, 2017
  • Number of updates: 4
  • Update frequency: every 0.2 days
  • Top authors: DannyvanHolten (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.16MB] [CPU: ▼23.73ms] Passed 4 tests

This is a short check of server-side resources used by WP Growl
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0749.16 ▲3.25
Dashboard /wp-admin3.19 ▼0.1528.43 ▼40.16
Posts /wp-admin/edit.php3.27 ▼0.0937.79 ▼14.08
Add New Post /wp-admin/post-new.php5.50 ▼0.3873.74 ▼32.05
Media Library /wp-admin/upload.php3.21 ▼0.0234.50 ▼8.64

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Growl
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4114.37 ▲0.021.95 ▲0.0944.55 ▼2.49
Dashboard /wp-admin2,208 ▲315.63 ▲0.0991.61 ▼0.5540.46 ▼1.89
Posts /wp-admin/edit.php2,119 ▲192.01 ▼0.0138.46 ▲1.9633.89 ▼3.85
Add New Post /wp-admin/post-new.php1,536 ▲1023.20 ▼0.29701.74 ▼12.3958.25 ▲1.20
Media Library /wp-admin/upload.php1,413 ▲134.25 ▲0.13112.05 ▼1.2748.13 ▼0.48

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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
There were no browser issues found

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

wp-growl-notifications/wp-growl-notifications.php Passed 13 tests

The main PHP script in "WP Growl" version 1.0 is automatically included on every request by WordPress
99 characters long description:
Show your WordPress admin notices in a growlike / better way, and snooze them whenever you see fit.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin537 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP994197434
PO File42024100
JavaScript2002
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.50
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2787.10%
▷ Protected methods00.00%
▷ Private methods412.90%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin