74% mwp-herd-effect

Code Review | Herd Effects - fake notifications and social proof plugin

WordPress plugin Herd Effects - fake notifications and social proof plugin scored74%from 54 tests.

About plugin

  • Plugin page: mwp-herd-effect
  • Plugin version: 5.2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.4
  • WordPress version: 6.3.1
  • First release: Aug 20, 2016
  • Latest release: Oct 31, 2023
  • Number of updates: 76
  • Update frequency: every 34.6 days
  • Top authors: Wpcalc (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

5,000+ active /41,971 total downloads

Benchmarks

Plugin footprint 65% from 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.02MB] [CPU: ▼5.29ms] Passed 4 tests

Server-side resources used by Herd Effects - fake notifications and social proof plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.48 ▼4.07
Dashboard /wp-admin3.33 ▼0.0145.19 ▼19.52
Posts /wp-admin/edit.php3.38 ▲0.0350.54 ▲3.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.34 ▼0.59
Media Library /wp-admin/upload.php3.26 ▲0.0340.51 ▲3.34
Herd Effects /wp-admin/admin.php?page=mwp-herd-effect3.3835.98
Welcome /wp-admin/admin.php?page=wow-company3.2532.93

Server storage [IO: ▲5.26MB] [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: 126 new files
Database: 1 new table, 6 new options
New tables
wp_wow_hep
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Herd Effects - fake notifications and social proof plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9414.29 ▼0.081.64 ▼0.0342.75 ▼1.03
Dashboard /wp-admin2,261 ▲895.63 ▼0.0996.09 ▼9.1042.65 ▼2.27
Posts /wp-admin/edit.php2,166 ▲661.98 ▼0.0243.45 ▲6.1336.88 ▲3.25
Add New Post /wp-admin/post-new.php1,550 ▲2423.20 ▲0.26601.35 ▼112.5257.27 ▲4.51
Media Library /wp-admin/upload.php1,466 ▲664.33 ▲0.17101.58 ▼3.8540.37 ▼4.38
Herd Effects /wp-admin/admin.php?page=mwp-herd-effect1,1442.2745.0325.29
Welcome /wp-admin/admin.php?page=wow-company9251.9926.5840.38

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_wow_hep
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/mwp-herd-effect/admin/settings/options/style.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/mwp-herd-effect/admin/settings/options/content.php:12
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/mwp-herd-effect/public/generator/variables/script.php on line 56
    • > PHP Notice
      Undefined variable: param in wp-content/plugins/mwp-herd-effect/public/generator/variables/script.php on line 56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/mwp-herd-effect/admin/settings/options/variables.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/mwp-herd-effect/admin/settings/options/settings.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (Here's how your notifications could run), #2 (Setting up this plugin is easy), #3 (What can you do with this plugin), #4 (Pro version features)
You can look at the official readme.txt

mwp-herd-effect/mwp-herd-effect.php 92% from 13 tests

The entry point to "Herd Effects - fake notifications and social proof plugin" version 5.2.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected29,840 lines of code in 75 files:
LanguageFilesBlank linesComment linesLines of code
CSS173,22811814,165
SVG40129,464
PHP456227495,518
JavaScript9120190693

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity14.00
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes240.00%
Methods61
▷ Static methods1118.03%
▷ Public methods5691.80%
▷ Protected methods11.64%
▷ Private methods46.56%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/about/image/icon.png121.88KB28.08KB▼ 76.96%