Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼2.53ms] Passed 4 tests
A check of server-side resources used by WP Share Simple
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.71 ▲2.72 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.98 ▼1.92 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.18 ▲1.98 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.66 ▼3.91 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 30.79 ▼6.26 |
WP Share Simple /wp-admin/options-general.php?page=wp_share_simple | 3.23 | 30.06 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Share Simple
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲182 | 13.54 ▼0.83 | 9.43 ▲7.68 | 37.73 ▼10.98 |
Dashboard /wp-admin | 2,207 ▲15 | 5.89 ▲0.95 | 101.05 ▼4.10 | 40.39 ▼0.24 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.06 ▲0.03 | 37.84 ▲1.42 | 37.76 ▲3.81 |
Add New Post /wp-admin/post-new.php | 1,538 ▲25 | 23.38 ▲5.73 | 668.66 ▲17.34 | 55.02 ▲2.93 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▲0.01 | 96.40 ▲1.15 | 44.26 ▲3.38 |
WP Share Simple /wp-admin/options-general.php?page=wp_share_simple | 850 | 2.07 | 25.13 | 32.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-share-simple/wp-share-admin.php:9
- > 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 93% from 29 tests
readme.txt 88% 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 require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-share-simple ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Options Page), #2 (Flat Style Share Buttons), #3 (Default Style Share Buttons)
wp-share-simple/wp-share-simple.php Passed 13 tests
The entry point to "WP Share Simple" version 1.3 is a PHP file that has certain tags in its header comment area
47 characters long description:
A simple plugin to show the social shared count
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
No dangerous file extensions were detected464 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 64 | 30 | 215 |
CSS | 2 | 7 | 0 | 214 |
JavaScript | 2 | 6 | 6 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 11.54KB | 4.12KB | ▼ 64.32% |
assets/facebook.png | 1.11KB | 0.19KB | ▼ 82.75% |
screenshot-2.png | 5.13KB | 2.60KB | ▼ 49.32% |
screenshot-3.png | 3.86KB | 2.81KB | ▼ 27.15% |
screenshot-1.png | 10.27KB | 5.49KB | ▼ 46.52% |