Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.15ms] Passed 4 tests
An overview of server-side resources used by Social Share by WP Dev Shed
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.39 ▼1.39 |
Dashboard /wp-admin | 3.33 ▼0.02 | 48.30 ▼18.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 51.00 ▲2.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 85.06 ▼23.16 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.47 ▲2.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Social Share by WP Dev Shed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.67 ▼0.65 | 6.71 ▲5.00 | 39.70 ▼0.95 |
Dashboard /wp-admin | 2,221 ▲18 | 4.81 ▼0.06 | 107.55 ▲1.07 | 44.68 ▲2.85 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.01 | 41.40 ▲0.48 | 37.98 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,554 ▲19 | 23.34 ▲0.09 | 660.79 ▲31.89 | 52.06 ▼9.14 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.18 ▼0.13 | 98.32 ▼9.52 | 42.88 ▼0.13 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× 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/social-share-by-wp-dev-shed/social-share-by-wpdevshed.php:20
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png displays the Facebook and Twitter share buttons on an article) image not found
social-share-by-wp-dev-shed/social-share-by-wpdevshed.php 92% from 13 tests
Analyzing the main PHP file in "Social Share by WP Dev Shed" version 1.6
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-share-by-wp-dev-shed.php" instead of "social-share-by-wpdevshed.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
No dangerous file extensions were detected172 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 31 | 115 |
Markdown | 1 | 11 | 0 | 34 |
CSS | 1 | 5 | 10 | 17 |
JavaScript | 1 | 3 | 4 | 6 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon-fb.png | 2.43KB | 0.89KB | ▼ 63.34% |
images/icon-tw.png | 2.64KB | 1.14KB | ▼ 56.89% |
screenshot-1.png | 43.02KB | 41.42KB | ▼ 3.71% |