Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼38.24ms] Passed 4 tests
Server-side resources used by LinkedIn InShare button
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.47 ▼1.33 |
Dashboard /wp-admin | 3.06 ▼0.28 | 24.74 ▼38.94 |
Posts /wp-admin/edit.php | 3.06 ▼0.29 | 25.62 ▼21.46 |
Add New Post /wp-admin/post-new.php | 3.06 ▼2.82 | 27.55 ▼79.81 |
Media Library /wp-admin/upload.php | 3.06 ▼0.17 | 21.76 ▼12.76 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-comments |
linkedinshare_breakbefore |
linkedinshare_showonlyinsingle |
can_compress_scripts |
linkedinshare_location |
linkedinshare_divstyling |
db_upgraded |
linkedinshare_displaystyle |
widget_theysaidso_widget |
linkedinshare_breakafter |
... |
Browser metrics Passed 4 tests
LinkedIn InShare button: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.76 ▲0.38 | 1.98 ▼0.17 | 43.77 ▼2.09 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▼0.00 | 96.92 ▼24.19 | 36.83 ▼6.78 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.02 ▲0.01 | 35.74 ▼3.08 | 33.73 ▼0.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 22.98 ▼0.03 | 695.04 ▲26.68 | 64.78 ▲6.03 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.19 ▼0.04 | 99.63 ▼1.13 | 42.62 ▲0.84 |
InShare button /wp-admin/linkedinshare.php | 26 | 0.44 | 0.08 | 13.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5747
Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
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 everything seems fine, this is not an exhaustive test
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/linkedin-inshare-button/linkedinshare.php:14
- > 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/linkedinshare.php
- > Network (severe)
wp-admin/linkedinshare.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Screenshot is showing bottom placed button)
linkedin-inshare-button/linkedinshare.php 92% from 13 tests
The primary PHP file in "LinkedIn InShare button" version 1.2.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("linkedin-inshare-button.php" instead of "linkedinshare.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected171 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 11 | 28 | 133 |
PO File | 1 | 16 | 24 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin