Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼146.91ms] Passed 4 tests
A check of server-side resources used by Social Media User Detection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▲0.02 | 29.05 ▲9.96 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.28 ▼1.82 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.05 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.49 ▼577.62 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 30.92 ▼7.84 |
User Detection /wp-admin/options-general.php?page=adapt_smud | 2.96 | 28.86 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Social Media User Detection
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,764 ▲168 | 16.06 ▲0.48 | 12.22 ▲0.36 | 48.46 ▼10.41 |
Dashboard /wp-admin | 2,975 ▲41 | 5.91 ▼0.07 | 150.48 ▲0.28 | 99.60 ▼11.63 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.00 | 71.90 ▼12.63 | 82.11 ▼9.57 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.69 ▼2.80 | 396.31 ▲84.20 | 102.82 ▼2.03 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.01 | 172.56 ▲9.82 | 115.73 ▲0.13 |
User Detection /wp-admin/options-general.php?page=adapt_smud | 1,219 | 2.11 | 54.40 | 102.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=adapt_smud
- > Notice in wp-content/plugins/social-network-user-detection/social-media-user-detection.php+143
Trying to access array offset on value of type bool
SRP 50% 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 fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-network-user-detection/social-media-user-detection.php:47
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Visitors Overview showing segmentation by social media network), #2 (Operating System overview showing segmentation by social media network), #3 (Bounce rate showing segmentation by social media network)
- Plugin Name: You should set the name of your plugin on the first line (
=== social-network-user-detection ===
)
social-network-user-detection/social-media-user-detection.php 85% from 13 tests
The main PHP script in "Social Media User Detection" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 147 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("social-network-user-detection.php" instead of "social-media-user-detection.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin192 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 32 | 24 | 192 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 11 | |
▷ Named functions | 11 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 7.39KB | 3.48KB | ▼ 52.95% |
assets/adapt-partners-logo.png | 13.38KB | 5.16KB | ▼ 61.44% |
screenshot-2.png | 15.20KB | 5.41KB | ▼ 64.38% |
screenshot-1.png | 7.60KB | 3.65KB | ▼ 51.93% |