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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.39MB] [CPU: ▲7.64ms] Passed 4 tests
Analyzing server-side resources used by Premium Contact Buttons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.90 ▲1.44 | 51.66 ▲11.69 |
Dashboard /wp-admin | 4.72 ▲1.42 | 57.89 ▲8.27 |
Posts /wp-admin/edit.php | 4.77 ▲1.42 | 58.37 ▲10.33 |
Add New Post /wp-admin/post-new.php | 7.24 ▲1.35 | 103.47 ▲0.28 |
Media Library /wp-admin/upload.php | 4.58 ▲1.35 | 51.30 ▲17.36 |
Server storage [IO: ▲2.78MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 176 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
_ccsb_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Premium Contact Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.86 ▼0.54 | 7.55 ▲6.03 | 38.00 ▼2.51 |
Dashboard /wp-admin | 2,239 ▲65 | 5.58 ▲0.02 | 87.40 ▲1.50 | 39.34 ▼4.28 |
Posts /wp-admin/edit.php | 2,144 ▲47 | 1.95 ▼0.06 | 33.23 ▼5.01 | 37.08 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 18.29 ▼4.76 | 613.33 ▼68.32 | 67.86 ▲8.39 |
Media Library /wp-admin/upload.php | 1,441 ▲41 | 4.19 ▼0.12 | 94.28 ▼5.37 | 42.70 ▼2.20 |
List Socials /wp-admin/admin.php?page=cc-social-buttons#tab=list-socials | 2,896 | 4.74 | 122.92 | 45.64 |
Setting /wp-admin/admin.php?page=cc-social-buttons#tab=setting | 2,163 | 4.00 | 63.30 | 36.68 |
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
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- _ccsb_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Screenshot_1.png), #2 (Screenshot_2.png), #3 (Screenshot_3.png), #4 (Screenshot_4.png)
cc-social-buttons/main.php 85% from 13 tests
The entry point to "Premium Contact Buttons" version 1.1.0 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 ("cc-social-buttons.php" instead of "main.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
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
Success! There were no dangerous files found in this plugin37,552 lines of code in 140 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 90 | 3,518 | 1,493 | 15,214 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
CSS | 6 | 290 | 500 | 6,328 |
Sass | 15 | 958 | 3 | 4,829 |
JavaScript | 6 | 1,266 | 347 | 3,994 |
SVG | 3 | 0 | 0 | 687 |
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.62 |
Average class complexity | 25.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 6.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 257 | |
▷ Static methods | 44 | 17.12% |
▷ Public methods | 257 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
7 PNG files occupy 0.27MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/facebook.png | 17.19KB | 8.53KB | ▼ 50.38% |
assets/images/skype.png | 26.95KB | 14.55KB | ▼ 46.01% |
assets/images/phone.png | 14.64KB | 5.15KB | ▼ 64.82% |
assets/images/zalo.png | 166.19KB | 82.87KB | ▼ 50.14% |
libs/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |