83% evidence

Code Review | Evidence - Social Proof & FOMO Notifications

WordPress plugin Evidence - Social Proof & FOMO Notifications scored 83% from 54 tests.

About plugin

  • Plugin page: evidence
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Jan 20, 2020
  • Latest release: Feb 2, 2021
  • Number of updates: 27
  • Update frequency: every 14.2 days
  • Top authors: jarrodevidence (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,216 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

Analyzing server-side resources used by Evidence - Social Proof & FOMO Notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.88 ▼3.36
Dashboard /wp-admin3.32 ▲0.0146.37 ▼3.20
Posts /wp-admin/edit.php3.37 ▲0.0149.19 ▼1.89
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.76 ▼3.87
Media Library /wp-admin/upload.php3.24 ▲0.0134.95 ▼0.33
Evidence /wp-admin/options-general.php?page=evidence_plugin3.2736.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Evidence - Social Proof & FOMO Notifications
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼1.111.76 ▲0.0142.05 ▼1.34
Dashboard /wp-admin2,210 ▲225.88 ▲0.9996.69 ▼8.4539.05 ▼9.08
Posts /wp-admin/edit.php2,096 ▲71.97 ▲0.0038.85 ▼1.7433.23 ▼5.33
Add New Post /wp-admin/post-new.php1,539 ▲523.15 ▲0.08639.88 ▼39.3358.78 ▼1.23
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.03102.38 ▲7.4143.56 ▼0.47
Evidence /wp-admin/options-general.php?page=evidence_plugin8772.0223.5029.67

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/evidence/templates/admin.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/evidence/trunk/templates/admin.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in evidence/assets to your readme.txt
You can look at the official readme.txt

evidence/evidence-plugin.php 77% from 13 tests

This is the main PHP file of "Evidence - Social Proof & FOMO Notifications" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: The principal plugin file should be the same as the plugin slug ("evidence.php" instead of "evidence-plugin.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 208 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin260 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP686122260

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods22
▷ Static methods627.27%
▷ Public methods22100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin