Benchmarks
Plugin footprint 83% from 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.06MB] [CPU: ▼3.79ms] Passed 4 tests
A check of server-side resources used by Plugin Simple Social Media Buttons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 45.82 ▲0.91 |
Dashboard /wp-admin | 3.37 ▲0.06 | 45.05 ▼6.03 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 44.48 ▼2.61 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.80 ▼7.42 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.25 ▲1.42 |
Server storage [IO: ▲2.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_simple_social_media_buttons |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Plugin Simple Social Media Buttons
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.17 ▼1.26 | 1.45 ▼0.59 | 40.30 ▼8.07 |
Dashboard /wp-admin | 2,208 ▲20 | 5.81 ▼0.03 | 105.78 ▼13.85 | 38.77 ▼7.49 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.03 ▲0.01 | 38.02 ▲2.25 | 33.24 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.28 ▲4.68 | 611.81 ▼43.79 | 52.66 ▼11.43 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.22 ▼0.02 | 97.02 ▲1.00 | 41.53 ▼0.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_simple_social_media_buttons
- theysaidso_admin_options
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-social-media-buttons/simple-social-media-buttons.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Widget control panel with General Settings expanded), #2 (Sidebar with icons square with round border), #3 (Sidebar with icons round)
simple-social-media-buttons/simple-social-media-buttons.php Passed 13 tests
The main PHP script in "Plugin Simple Social Media Buttons" version 1.0 is automatically included on every request by WordPress
72 characters long description:
Adds a widget for sharing social media in a simple and easy to configure
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin9,822 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,546 |
PHP | 1 | 29 | 18 | 210 |
CSS | 2 | 14 | 6 | 52 |
JavaScript | 1 | 0 | 1 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 7.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 44.31KB | 13.46KB | ▼ 69.64% |
assets/screenshot-3.png | 5.82KB | 2.80KB | ▼ 51.97% |
assets/screenshot-2.png | 3.49KB | 2.00KB | ▼ 42.90% |