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.18MB] [CPU: ▼7.41ms] Passed 4 tests
A check of server-side resources used by LinkedIn Lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.02 ▼0.09 |
Dashboard /wp-admin | 3.50 ▲0.15 | 47.29 ▼11.46 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.00 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 81.98 ▼17.58 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.16 ▼0.50 |
Help /wp-admin/admin.php?page=linkedin-lite-help | 3.36 | 31.08 |
Settings /wp-admin/admin.php?page=linkedin-lite | 3.37 | 34.81 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_lil-widget-profile |
widget_theysaidso_widget |
liLITE_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LinkedIn Lite
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲57 | 14.75 ▲0.13 | 1.69 ▼0.55 | 40.65 ▼2.56 |
Dashboard /wp-admin | 2,232 ▲41 | 5.86 ▲0.96 | 100.05 ▼7.87 | 82.83 ▲41.82 |
Posts /wp-admin/edit.php | 2,112 ▲23 | 2.00 ▲0.01 | 37.64 ▲2.91 | 36.02 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.12 ▼0.12 | 718.91 ▲51.72 | 52.17 ▲0.30 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.22 ▲0.05 | 110.93 ▲6.42 | 43.67 ▼1.83 |
Help /wp-admin/admin.php?page=linkedin-lite-help | 884 | 2.15 | 24.24 | 42.00 |
Settings /wp-admin/admin.php?page=linkedin-lite | 1,340 | 1.74 | 25.64 | 42.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- liLITE_settings
- theysaidso_admin_options
- widget_lil-widget-profile
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=linkedin-lite-help
- > Deprecated in wp-content/plugins/linkedin-lite/setup.php+140
Non-static method LILdraw::helpInfo() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=linkedin-lite
- > Deprecated in wp-content/plugins/linkedin-lite/admin.php+165
Non-static method LILdraw::adminProfileTab() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=linkedin-lite
- > Deprecated in wp-content/plugins/linkedin-lite/class-draw.php+8
Non-static method liLITE_core::getAPIFieldSet() should not be called statically
- 40 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=linkedin-lite
- > Deprecated in wp-content/plugins/linkedin-lite/class-draw.php+36
Non-static method LILdraw::getProfileItem() should not be called statically
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/linkedin-lite/linkedin_receiver.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/linkedin-lite/setup.php:38
- > PHP Fatal error
Uncaught Error: Class 'liLITE_core' not found in wp-content/plugins/linkedin-lite/class-linkedin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function network_site_url() in wp-content/plugins/linkedin-lite/setup.php:38
- > PHP Notice
Undefined variable: stateHashOK in wp-content/plugins/linkedin-lite/linkedin_receiver.php on line 116
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=linkedin-lite
- > Network (severe)
wp-content/plugins/linkedin-lite/css/images/admin-grad-1.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: page, multisite, linkedin, widget
linkedin-lite/linkedin-lite.php Passed 13 tests
The primary PHP file in "LinkedIn Lite" version 1.0 is used by WordPress to initiate all plugin functionality
42 characters long description:
Display your LinkedIn profile on your blog
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,215 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 293 | 145 | 1,069 |
CSS | 2 | 67 | 16 | 146 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 109)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 8.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 109.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/tick.png | 0.66KB | 0.47KB | ▼ 29.71% |
images/li_icon.png | 1.43KB | 0.54KB | ▼ 62.57% |