Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼301.09ms] Passed 4 tests
Server-side resources used by Add Social Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 54.68 ▲3.21 |
Dashboard /wp-admin | 3.44 ▲0.04 | 32.36 ▼2.46 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 37.35 ▼1.74 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.05 | 93.63 ▼1,192.01 |
Media Library /wp-admin/upload.php | 3.32 ▲0.02 | 25.02 ▼8.16 |
All Social Buttonss /wp-admin/edit.php?post_type=addsocialbuttons | 3.36 | 26.22 |
Add New /wp-admin/post-new.php?post_type=addsocialbuttons | 3.60 | 36.03 |
Server storage [IO: ▲0.08MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Add Social Buttons: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲59 | 16.22 ▲0.24 | 5.59 ▼1.41 | 2.38 ▲0.20 |
Dashboard /wp-admin | 2,923 ▲72 | 6.08 ▼0.13 | 119.71 ▼10.65 | 155.81 ▼5.14 |
Posts /wp-admin/edit.php | 2,691 ▲6 | 3.25 ▲0.02 | 64.00 ▲0.62 | 138.93 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,742 ▼9 | 22.50 ▲0.98 | 436.61 ▼8.88 | 160.06 ▲2.98 |
Media Library /wp-admin/upload.php | 1,733 ▲32 | 5.48 ▼0.01 | 134.10 ▼10.31 | 184.75 ▼9.58 |
All Social Buttonss /wp-admin/edit.php?post_type=addsocialbuttons | 1,420 | 3.16 | 60.41 | 112.44 |
Add New /wp-admin/post-new.php?post_type=addsocialbuttons | 2,287 | 3.91 | 92.82 | 131.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-social-buttons/includes/scripts.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/add-social-buttons/addsocialbuttons.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The review edition page) image not found
add-social-buttons/addsocialbuttons.php 85% from 13 tests
This is the main PHP file of "Add Social Buttons" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("add-social-buttons.php" instead of "addsocialbuttons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin411 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 100 | 60 | 389 |
CSS | 2 | 6 | 6 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 10 | |
▷ Named functions | 10 | 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
12 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/pinterest.png | 6.26KB | 3.38KB | ▼ 46.03% |
assets/img/twitter.png | 2.84KB | 1.58KB | ▼ 44.50% |
assets/img/flickr.png | 2.19KB | 1.60KB | ▼ 26.90% |
assets/img/linkedin.png | 1.62KB | 0.92KB | ▼ 43.60% |
assets/img/behance.png | 3.09KB | 2.13KB | ▼ 31.16% |