Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.15ms] Passed 4 tests
Server-side resources used by Linkedin Profile Badge
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.44 ▼7.90 |
Dashboard /wp-admin | 3.35 ▲0.04 | 50.89 ▲6.08 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.60 ▲0.18 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.74 ▼6.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.70 ▲1.97 |
Linkedin Profile Badge /wp-admin/options-general.php?page=linkedinbadge | 3.31 | 417.34 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
linkedinbadge |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Linkedin Profile Badge
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 14.49 ▲0.22 | 59.68 ▲58.01 | 37.59 ▼7.47 |
Dashboard /wp-admin | 2,217 ▲29 | 5.86 ▼0.02 | 96.59 ▼8.64 | 43.34 ▲0.37 |
Posts /wp-admin/edit.php | 2,102 ▲16 | 2.01 ▲0.02 | 34.23 ▼4.34 | 34.58 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,546 ▲4 | 23.16 ▲4.57 | 664.41 ▲47.08 | 57.05 ▲3.23 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.22 ▲0.03 | 110.30 ▼1.53 | 47.36 ▼1.48 |
Linkedin Profile Badge /wp-admin/options-general.php?page=linkedinbadge | 1,465 | 7.76 | 229.94 | 70.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- linkedinbadge
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=linkedinbadge
- > Warning in wp-content/plugins/linkedin-profile-badge/class-admin.php+236
Invalid argument supplied for foreach()
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/linkedin-profile-badge/linkedin-profile-badge.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-profile-badge/class-admin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linkedin-profile-badge/class-frontend.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=linkedinbadge
- > Network (severe)
http://platform.stumbleupon.com/1/widgets.js - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=linkedinbadge
- > Javascript (severe) in unknown
https://button.buffer.com/button/?id=378cca86f6deae22&url=http%3A%2F%2F3doordigital.com%2Fwordpress%2Fplugins%2Flinkedin-profile-badge%2F&text=Just%20been%20using%20Linkedin%20Profile%20Badge%20%23WordPress%20plugin&via=alexmoss&count=horizontal&placement=button&utm_source=http%3A%2F%2Fwp.com%2Fwp-admin%2Foptions-general.php%3Fpage%3Dlinkedinbadge&utm_medium=buffer_button&utm_campaign=buffer 15:647 Uncaught TypeError: Cannot set properties of null (setting 'onclick')
- > GET request to /wp-admin/options-general.php?page=linkedinbadge
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 96% from 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
7 plugin tags: profile, post, shortcode, linkedin, page...
linkedin-profile-badge/linkedin-profile-badge.php 92% from 13 tests
The primary PHP file in "Linkedin Profile Badge" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 228 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected362 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 19 | 261 |
CSS | 1 | 12 | 0 | 101 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
3dd-logo.png | 14.63KB | 5.34KB | ▼ 63.49% |