84% notifier-for-glip

Code Review | Notifier for Glip

WordPress plugin Notifier for Glip scored84%from 54 tests.

About plugin

  • Plugin page: notifier-for-glip
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Dec 18, 2015
  • Latest release: Dec 18, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: davidfcarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.32ms] Passed 4 tests

An overview of server-side resources used by Notifier for Glip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.05 ▼0.38
Dashboard /wp-admin3.33 ▲0.0348.65 ▼5.41
Posts /wp-admin/edit.php3.38 ▲0.0251.11 ▼1.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.64 ▼6.42
Media Library /wp-admin/upload.php3.25 ▲0.0237.36 ▲2.48
Glip /wp-admin/options-general.php?page=glip_options3.2229.64

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Notifier for Glip
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.17 ▼0.361.65 ▼0.2743.71 ▼0.32
Dashboard /wp-admin2,203 ▲295.49 ▼0.0888.86 ▼9.6641.80 ▼0.91
Posts /wp-admin/edit.php2,111 ▲112.03 ▲0.0140.22 ▲3.0137.81 ▼0.54
Add New Post /wp-admin/post-new.php1,543 ▲1518.10 ▼5.11641.57 ▲24.9065.48 ▲8.30
Media Library /wp-admin/upload.php1,402 ▲54.23 ▼0.01100.15 ▼3.4044.13 ▼2.35
Glip /wp-admin/options-general.php?page=glip_options8102.1324.1722.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notifier-for-glip/notifier-for-glip.php:51

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: webhooks, collaboration, glip

notifier-for-glip/notifier-for-glip.php 92% from 13 tests

The main PHP file in "Notifier for Glip" ver. 0.9 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 265 characters long)

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
There were no executable files found in this plugin88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1261288

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
glip-webhooks.png98.50KB33.12KB▼ 66.37%
wordpress-logo-32-blue.png3.21KB1.72KB▼ 46.50%