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.90MB] [CPU: ▼177.00ms] Passed 4 tests
Analyzing server-side resources used by Responsive Share Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 41.44 ▲3.89 |
Dashboard /wp-admin | 2.75 ▼0.31 | 22.71 ▼29.69 |
Posts /wp-admin/edit.php | 2.75 ▼0.36 | 23.18 ▼27.32 |
Add New Post /wp-admin/post-new.php | 2.75 ▼2.69 | 22.09 ▼634.42 |
Media Library /wp-admin/upload.php | 2.75 ▼0.26 | 21.89 ▼16.56 |
WhatsApp Share Button /wp-admin/options-general.php?page=fm-whatsApp-share | 2.75 | 21.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Responsive Share Button
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲114 | 15.95 ▲0.35 | 9.40 ▲0.21 | 50.15 ▼0.92 |
Dashboard /wp-admin | 2,975 ▲41 | 5.88 ▼0.08 | 151.32 ▼8.59 | 110.06 ▼3.59 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 71.35 ▲2.36 | 90.81 ▼0.23 |
Add New Post /wp-admin/post-new.php | 1,584 ▼99 | 20.62 ▲2.23 | 431.31 ▲11.79 | 111.32 ▼3.19 |
Media Library /wp-admin/upload.php | 1,815 ▲67 | 5.03 ▲0.03 | 156.25 ▲1.95 | 121.31 ▲11.49 |
WhatsApp Share Button /wp-admin/options-general.php?page=fm-whatsApp-share | 1,100 | 2.09 | 59.67 | 75.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/responsive-whatsapp-share-button/index.php+76
Use of undefined constant rsb_SocialSharePlugin - assumed 'rsb_SocialSharePlugin' (this will throw an Error in a future version of PHP)
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=fm-whatsApp-share
- > Warning in wp-content/plugins/responsive-whatsapp-share-button/index.php+76
Use of undefined constant rsb_SocialSharePlugin - assumed 'rsb_SocialSharePlugin' (this will throw an Error in a future version of PHP)
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: website share, mobile seo, button, share, whatsapp...
responsive-whatsapp-share-button/index.php 92% from 13 tests
The main PHP file in "Responsive Share Button" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-whatsapp-share-button.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin101 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 19 | 76 |
CSS | 1 | 1 | 1 | 25 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
whatsapp.png | 0.49KB | 0.64KB | 0.00% |