Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼131.27ms] Passed 4 tests
A check of server-side resources used by Viral Follow Buttons by UP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 45.90 ▲8.74 |
Dashboard /wp-admin | 3.19 ▲0.13 | 87.09 ▲37.69 |
Posts /wp-admin/edit.php | 3.24 ▲0.13 | 55.47 ▲10.36 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 101.45 ▼554.35 |
Media Library /wp-admin/upload.php | 3.07 ▲0.07 | 45.92 ▲10.19 |
Server storage [IO: ▲3.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 2 new options
New WordPress options |
---|
upshare_notice |
partner_id |
Browser metrics Passed 4 tests
A check of browser resources used by Viral Follow Buttons by UP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,771 ▲175 | 16.19 ▲0.29 | 8.36 ▼0.03 | 50.23 ▼4.19 |
Dashboard /wp-admin | 3,000 ▲66 | 5.94 ▼0.20 | 196.47 ▲40.45 | 172.51 ▲61.91 |
Posts /wp-admin/edit.php | 2,765 ▲26 | 2.72 ▲0.04 | 78.13 ▲8.38 | 102.94 ▲5.05 |
Add New Post /wp-admin/post-new.php | 1,610 ▼73 | 17.23 ▼1.19 | 395.03 ▼7.01 | 117.24 ▲1.97 |
Media Library /wp-admin/upload.php | 1,791 ▼16 | 5.04 ▼0.02 | 144.41 ▼18.27 | 157.30 ▲29.75 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/viral-follow-buttons-by-up/html/admin/settings.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/viral-follow-buttons-by-up/upshare.php:24
- > PHP Notice
Undefined variable: partner_id in wp-content/plugins/viral-follow-buttons-by-up/html/admin/settings.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: A description for screenshot #2 is missing in viral-follow-buttons-by-up/assets to your readme.txt
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
viral-follow-buttons-by-up/upshare.php 92% from 13 tests
The entry point to "Viral Follow Buttons by UP" version 1.0.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("viral-follow-buttons-by-up.php" instead of "upshare.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected991 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 130 | 9 | 559 |
PHP | 2 | 89 | 31 | 425 |
JavaScript | 2 | 4 | 5 | 7 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 16 | |
▷ Static methods | 2 | 12.50% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 1 | 6.25% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
16 PNG files occupy 1.18MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/btn-clickhere.png | 1.82KB | 0.91KB | ▼ 50.11% |
images/menu-icon.png | 1.35KB | 0.61KB | ▼ 54.86% |
images/partner-metrics-slider-3.png | 127.98KB | 38.61KB | ▼ 69.83% |
images/border-img.png | 1.21KB | 1.14KB | ▼ 6.13% |
images/partner-slider-2.png | 191.33KB | 54.05KB | ▼ 71.75% |