88% notificationpanda

Code Review | Notification Panda Social Proof

WordPress plugin Notification Panda Social Proof scored 88% from 54 tests.

About plugin

  • Plugin page: notificationpanda
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-5.6
  • WordPress version: 5.9.2
  • First release: Jan 10, 2021
  • Latest release: Feb 15, 2021
  • Number of updates: 24
  • Update frequency: every 1.6 days
  • Top authors: notificationpanda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.04MB] [CPU: ▼296.86ms] Passed 4 tests

A check of server-side resources used by Notification Panda Social Proof
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0855.10 ▲3.64
Dashboard /wp-admin3.48 ▲0.0737.45 ▲4.39
Posts /wp-admin/edit.php3.70 ▲0.0739.28 ▲2.21
Add New Post /wp-admin/post-new.php6.93 ▼0.0492.55 ▼1,193.69
Media Library /wp-admin/upload.php3.36 ▲0.0626.04 ▲0.40
Notification Panda /wp-admin/admin.php?page=notification-panda3.3223.57
Install Pixel /wp-admin/admin.php?page=notification-panda-install-pixel3.3329.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Notification Panda Social Proof: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,840 ▲9616.20 ▲0.586.29 ▲0.152.26 ▲0.18
Dashboard /wp-admin2,948 ▲906.18 ▲0.03120.43 ▼15.10156.94 ▼6.90
Posts /wp-admin/edit.php2,745 ▲603.25 ▲0.0268.76 ▲3.00142.37 ▼1.41
Add New Post /wp-admin/post-new.php1,706 ▲4519.39 ▲3.11385.97 ▼20.98158.27 ▼2.84
Media Library /wp-admin/upload.php1,753 ▲555.57 ▲0.04144.98 ▲4.16187.53 ▼1.43
Notification Panda /wp-admin/admin.php?page=notification-panda8412.1637.5772.52
Install Pixel /wp-admin/admin.php?page=notification-panda-install-pixel1,2505.22116.38126.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/notificationpanda/views/login.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/notificationpanda/views/dashboard-notices.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/notificationpanda/views/install-pixel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_file_data() in wp-content/plugins/notificationpanda/notificationpanda.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/notificationpanda/views/sidebar.php:1

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
The official readme.txt might help

notificationpanda/notificationpanda.php Passed 13 tests

The main PHP script in "Notification Panda Social Proof" version 2.0.0 is automatically included on every request by WordPress
126 characters long description:
Allows you to install Notification Panda of your WordPress Website and Manage your campaigns directly from your WP Admin area.

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 plugin221 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5339221

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin