Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼19.40ms] Passed 4 tests
This is a short check of server-side resources used by Linkedin_Oauth
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 43.96 ▲6.10 |
Dashboard /wp-admin | 3.39 ▲0.04 | 51.33 ▼27.95 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 59.78 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 86.87 ▼42.38 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.33 ▼7.67 |
Linkedin Plugin /wp-admin/options-general.php?page=linkedin-plugin | 3.28 | 38.28 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_linkedinoauth_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Linkedin_Oauth
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲142 | 13.89 ▼0.48 | 9.95 ▲8.14 | 42.61 ▲3.58 |
Dashboard /wp-admin | 2,213 ▲27 | 6.06 ▲1.11 | 113.56 ▼19.22 | 40.76 ▼1.01 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.00 ▼0.04 | 45.75 ▼8.38 | 38.82 ▼5.51 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 21.06 ▼2.21 | 703.40 ▲29.83 | 53.89 ▲1.31 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.26 ▲0.07 | 107.30 ▼22.48 | 44.64 ▼14.68 |
Linkedin Plugin /wp-admin/options-general.php?page=linkedin-plugin | 863 | 2.06 | 27.78 | 31.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_linkedinoauth_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/linkedin-oauth/lib/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-oauth/lib/functions.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-oauth/linkedin_oauth.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Adds a Button to login your wp-admin), #2 (You have to set an id and secret pass on Linkedin developers API), #3 (Provides a back-end to include your id and secret pass also your redirect URL and if user can register with this button), #4 (Provide a Widget to add a Login Button with or without Title and Short Description), #5 (Metabox to add Login URL to the Menu)
linkedin-oauth/linkedin_oauth.php 92% from 13 tests
The entry point to "Linkedin_Oauth" version 0.1.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("linkedin-oauth.php" instead of "linkedin_oauth.php")
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 detected514 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 58 | 34 | 387 |
PO File | 1 | 32 | 40 | 116 |
JavaScript | 1 | 0 | 0 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/bck_button_en.png | 2.98KB | 0.93KB | ▼ 68.75% |
img/bck_button.png | 6.14KB | 1.78KB | ▼ 70.96% |