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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼140.99ms] Passed 4 tests
A check of server-side resources used by LinkedInclude
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 39.42 ▲14.13 |
Dashboard /wp-admin | 3.17 ▲0.12 | 44.73 ▼1.99 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 48.84 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 98.56 ▼563.28 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 38.04 ▲3.61 |
LinkedInclude /wp-admin/tools.php?page=linkedinclude | 3.09 | 35.39 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 140 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_linkedinclude_posts |
New WordPress options |
---|
widget_linkedinclude_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LinkedInclude
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 15.98 ▲0.06 | 8.13 ▼1.29 | 51.62 ▲3.75 |
Dashboard /wp-admin | 2,981 ▲50 | 6.01 ▲0.04 | 149.95 ▲5.23 | 114.75 ▲2.80 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.83 ▲0.02 | 69.20 ▼1.09 | 92.54 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,589 ▼26 | 20.96 ▼0.43 | 381.76 ▲115.78 | 116.16 ▲3.19 |
Media Library /wp-admin/upload.php | 1,817 ▲13 | 5.04 ▲0.03 | 161.90 ▼5.37 | 124.48 ▼2.56 |
LinkedInclude /wp-admin/tools.php?page=linkedinclude | 1,258 | 2.24 | 58.55 | 102.82 |
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
- Zombie WordPress options detected upon uninstall: 1 option
- widget_linkedinclude_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/linkedinclude/vendor/pharse/examples/bbc_rss.php
- > /wp-content/plugins/linkedinclude/vendor/pharse/examples/rss2array.php
- > /wp-content/plugins/linkedinclude/vendor/pharse/examples/google.php
- > /wp-content/plugins/linkedinclude/vendor/pharse/examples/formatter.php
- > /wp-content/plugins/linkedinclude/vendor/pharse/examples/utf8.php
- 47× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/psr7/src/FnStream.php:12
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Handler\\CurlFactoryInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/psr7/src/Stream.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/psr7/src/MultipartStream.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/linkedinclude/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/promises/src/RejectedPromise.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedinclude/linkedinclude_setup.php:72
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/linkedinclude/vendor/guzzlehttp/promises/src/Promise.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: linkedin
linkedinclude/linkedinclude.php Passed 13 tests
The main file in "LinkedInclude" v. 3.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
29 characters long description:
Article Importer for LinkedIn
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin17,113 lines of code in 128 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 2,594 | 7,031 | 13,233 |
Markdown | 10 | 952 | 0 | 3,193 |
JSON | 6 | 0 | 0 | 405 |
CSS | 2 | 0 | 12 | 218 |
JavaScript | 1 | 7 | 13 | 45 |
HTML | 1 | 0 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 155)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 21.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 269.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 155.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 14 | |
Traits | 2 | |
Classes | 87 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 87 | 100.00% |
▷ Final classes | 7 | 8.05% |
Methods | 906 | |
▷ Static methods | 69 | 7.62% |
▷ Public methods | 677 | 74.72% |
▷ Protected methods | 109 | 12.03% |
▷ Private methods | 120 | 13.25% |
Functions | 157 | |
▷ Named functions | 70 | 44.59% |
▷ Anonymous functions | 87 | 55.41% |
Constants | 198 | |
▷ Global constants | 99 | 50.00% |
▷ Class constants | 99 | 50.00% |
▷ Public constants | 99 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/paypal.png | 4.58KB | 2.06KB | ▼ 54.95% |
img/hide.png | 1.15KB | 0.31KB | ▼ 72.91% |
img/show.png | 1.29KB | 0.47KB | ▼ 63.40% |
img/bulcclub.png | 2.74KB | 1.77KB | ▼ 35.19% |