Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.19ms] Passed 4 tests
Server-side resources used by ShareDisc
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.49 ▲4.03 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.53 ▼2.13 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.36 ▲2.74 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 79.78 ▼22.52 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.28 ▲1.17 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 65 new files
Database: no new tables, 10 new options
New WordPress options |
---|
sharedisc_bitly_settings |
sharedisc_styling_settings |
theysaidso_admin_options |
db_upgraded |
sharedisc_settings |
can_compress_scripts |
sharedisc_message_settings |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
ShareDisc: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.68 ▼0.71 | 1.71 ▼0.03 | 38.41 ▲0.08 |
Dashboard /wp-admin | 2,212 ▲20 | 5.86 ▲0.98 | 94.78 ▼15.82 | 36.02 ▼7.24 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 1.98 ▼0.03 | 35.10 ▼6.19 | 33.99 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.50 ▲0.27 | 648.08 ▲55.68 | 50.12 ▼1.40 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.22 ▲0.00 | 95.73 ▲0.76 | 42.20 ▲2.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
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)
Even though everything seems fine, this is not 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'ShareDisc_Sharing_Platform' not found in wp-content/plugins/sharedisc/platforms/sharedisc-platform-linkedin.php:13
- > PHP Fatal error
Uncaught Error: Class 'ShareDisc_Sharing_Platform' not found in wp-content/plugins/sharedisc/platforms/sharedisc-platform-twitter.php:13
- > PHP Fatal error
Uncaught Error: Class 'ShareDisc_Sharing_Platform' not found in wp-content/plugins/sharedisc/platforms/sharedisc-platform-facebook.php:13
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Your credit breakdown (purchased from Sharedisc.com) and some of the Social settings.), #2 (Social Network % discounts on offer and default sharing text.), #3 (Statistics based on shares, closures and discounts. For your R.O.I. calculations.), #4 (A complete list of all the Shares that have been logged on our system.), #5 (Callout theme settings.)
sharedisc/sharedisc.php 92% from 13 tests
"ShareDisc" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 181 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,842 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 2,177 | 938 | 2,614 |
JavaScript | 6 | 594 | 211 | 776 |
CSS | 11 | 129 | 132 | 452 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 26.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 24 | 20.51% |
▷ Public methods | 112 | 95.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 4.27% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
21 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/sd_icon.png | 0.56KB | 0.54KB | ▼ 4.69% |
public/images/sharediscicon-sm.png | 0.64KB | 0.73KB | 0.00% |
admin/images/sharedisclogo.png | 11.33KB | 7.10KB | ▼ 37.35% |
themes/sd-theme-sharedisc-base.png | 0.97KB | 0.68KB | ▼ 29.71% |
admin/images/linkedin.png | 5.22KB | 3.39KB | ▼ 35.04% |