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.04MB] [CPU: ▼4.39ms] Passed 4 tests
Analyzing server-side resources used by Lets Users Follow you on social media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.03 | 39.61 ▲0.59 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.37 ▼7.51 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 49.97 ▲1.44 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.57 ▼8.54 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.77 ▼2.11 |
Server storage [IO: ▲0.25MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Lets Users Follow you on social media: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲85 | 13.22 ▼1.16 | 1.74 ▲0.00 | 43.61 ▲5.97 |
Dashboard /wp-admin | 2,229 ▲38 | 5.87 ▲1.00 | 98.39 ▼1.43 | 39.92 ▼3.61 |
Posts /wp-admin/edit.php | 2,109 ▲17 | 2.06 ▲0.04 | 35.32 ▼7.00 | 32.97 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,534 ▲11 | 23.57 ▲0.32 | 647.70 ▲46.88 | 50.20 ▼1.33 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.19 ▲0.03 | 95.91 ▼3.13 | 42.73 ▲0.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- pcpl_welcome
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/lets-users-follow-you-on-social-media/pcpl-follow.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lets-users-follow-you-on-social-media/templates/admin-panel.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: lets users follow you on social media
lets-users-follow-you-on-social-media/pcpl-follow.php 85% from 13 tests
The entry point to "Lets Users Follow you on social media" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lets-users-follow-you-on-social-media.php" instead of "pcpl-follow.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected232 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 58 | 193 |
CSS | 1 | 3 | 0 | 20 |
JavaScript | 1 | 12 | 7 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.23MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 140.31KB | 58.81KB | ▼ 58.09% |
assets/screenshot-1.png | 10.84KB | 6.23KB | ▼ 42.56% |
assets/screenshot-3.png | 19.39KB | 9.97KB | ▼ 48.58% |
assets/screenshot-4.png | 29.87KB | 15.90KB | ▼ 46.75% |
assets/screenshot-5.png | 38.92KB | 12.43KB | ▼ 68.05% |