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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.48 ▼4.07 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.19 ▼19.52 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.54 ▲3.03 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.34 ▼0.59 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.51 ▲3.34 |
Herd Effects /wp-admin/admin.php?page=mwp-herd-effect | 3.38 | 35.98 |
Welcome /wp-admin/admin.php?page=wow-company | 3.25 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲94 | 14.29 ▼0.08 | 1.64 ▼0.03 | 42.75 ▼1.03 |
Dashboard /wp-admin | 2,261 ▲89 | 5.63 ▼0.09 | 96.09 ▼9.10 | 42.65 ▼2.27 |
Posts /wp-admin/edit.php | 2,166 ▲66 | 1.98 ▼0.02 | 43.45 ▲6.13 | 36.88 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.20 ▲0.26 | 601.35 ▼112.52 | 57.27 ▲4.51 |
Media Library /wp-admin/upload.php | 1,466 ▲66 | 4.33 ▲0.17 | 101.58 ▼3.85 | 40.37 ▼4.38 |
Herd Effects /wp-admin/admin.php?page=mwp-herd-effect | 1,144 | 2.27 | 45.03 | 25.29 |
Welcome /wp-admin/admin.php?page=wow-company | 925 | 1.99 | 26.58 | 40.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
- > PHP Fatal error
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)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 3,228 | 118 | 14,165 |
SVG | 4 | 0 | 12 | 9,464 |
PHP | 45 | 622 | 749 | 5,518 |
JavaScript | 9 | 120 | 190 | 693 |
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 code | 0.37 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 2 | 40.00% |
Methods | 61 | |
▷ Static methods | 11 | 18.03% |
▷ Public methods | 56 | 91.80% |
▷ Protected methods | 1 | 1.64% |
▷ Private methods | 4 | 6.56% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/about/image/icon.png | 121.88KB | 28.08KB | ▼ 76.96% |