Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.19ms] Passed 4 tests
Server-side resources used by Jetpack Sharing Source Pack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 26.43 ▼8.71 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.09 ▲4.03 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 60.22 ▲15.27 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 100.35 ▼14.84 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 43.21 ▼1.24 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
jpssp-api_activated |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Jetpack Sharing Source Pack
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,465 ▼281 | 13.38 ▼1.21 | 0.53 ▼1.26 | 20.98 ▼18.21 |
Dashboard /wp-admin | 2,203 ▲15 | 5.86 ▼0.08 | 114.70 ▼2.31 | 48.49 ▲2.82 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.00 ▼0.03 | 39.81 ▼0.16 | 36.60 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.31 ▲0.17 | 740.01 ▲19.33 | 78.29 ▲11.37 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.21 ▼0.01 | 136.69 ▲6.31 | 65.15 ▲12.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jpssp/class.sharing-services.php
- > /wp-content/plugins/jpssp/class.sharing-sources.php
- > /wp-content/plugins/jpssp/jetpack-sharing-source-pack.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jpssp/class.jpssp-api.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: share, jetpack, sns, sharing, social
jpssp/jetpack-sharing-source-pack.php 92% from 13 tests
The entry point to "Jetpack Sharing Source Pack" version 0.1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("jpssp.php" instead of "jetpack-sharing-source-pack.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected834 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 121 | 19 | 496 |
CSS | 1 | 40 | 42 | 285 |
JavaScript | 1 | 10 | 2 | 53 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.62 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 56 | |
▷ Static methods | 6 | 10.71% |
▷ Public methods | 53 | 94.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.36% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
34 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 |
images/LINE/rectangle-zh-hant@2x.png | 3.11KB | 1.86KB | ▼ 40.13% |
images/LINE/shape-white@2x.png | 1.15KB | 1.40KB | 0.00% |
images/feedly/rectangle-sample.png | 2.79KB | 1.80KB | ▼ 35.46% |
images/Hatena/rectangle-sample.png | 2.75KB | 1.77KB | ▼ 35.54% |
images/LINE/rectangle-en@2x.png | 2.40KB | 1.69KB | ▼ 29.58% |