Benchmarks
Plugin footprint 83% from 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.04MB] [CPU: ▼6.25ms] Passed 4 tests
An overview of server-side resources used by AM Social Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.76 ▼4.95 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.46 ▼3.98 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.12 ▼9.88 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.54 ▼6.20 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.50 ▲6.39 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_am-social-widget |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for AM Social Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲5 | 14.37 ▼0.19 | 1.90 ▼0.68 | 44.63 ▼0.07 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▼0.03 | 85.84 ▼13.30 | 41.51 ▼2.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.01 | 35.12 ▼0.43 | 36.21 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.38 ▲0.31 | 654.06 ▼21.57 | 54.29 ▲5.58 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.01 | 102.05 ▼0.88 | 43.11 ▼7.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- widget_am-social-widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: sharing, social media, buttons, widget, social...
am-social-widget/am-social-widget.php Passed 13 tests
"AM Social Widget" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
112 characters long description:
WordPress plugin that allows user to link to their social profiles like facebook, twitter, linkedIn, youtube etc
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected224 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 110 | 168 |
CSS | 2 | 1 | 0 | 34 |
Markdown | 1 | 10 | 0 | 22 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 1 | 14.29% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
2 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/screenshot-2.png | 34.09KB | 10.07KB | ▼ 70.46% |
assets/images/screenshot-1.png | 89.28KB | 24.61KB | ▼ 72.43% |