Benchmarks
Plugin footprint 65% 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: ▲5.43MB] [CPU: ▲24.82ms] 75% from 4 tests
An overview of server-side resources used by Add Linkedin insight tags for Linkedin ads
Please have a look at the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.43MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.26 ▲5.80 | 68.69 ▲24.44 |
Dashboard /wp-admin | 9.28 ▲5.98 | 77.08 ▲16.48 |
Posts /wp-admin/edit.php | 9.28 ▲5.93 | 90.49 ▲36.52 |
Add New Post /wp-admin/post-new.php | 9.89 ▲4.00 | 123.18 ▲25.53 |
Media Library /wp-admin/upload.php | 9.28 ▲6.05 | 70.15 ▲32.82 |
Linkedin Insight Tag /wp-admin/options-general.php?page=lktags | 9.28 | 66.47 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.28 | 63.89 |
Server storage [IO: ▲5.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 268 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
fs_debug_mode |
fs_accounts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
fs_active_plugins |
Browser metrics Passed 4 tests
A check of browser resources used by Add Linkedin insight tags for Linkedin ads
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.76 ▲0.01 | 1.60 ▲0.01 | 33.43 ▼11.36 |
Dashboard /wp-admin | 2,221 ▲44 | 5.66 ▲0.01 | 90.64 ▲0.14 | 54.08 ▲13.21 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.01 ▼0.02 | 36.53 ▼5.72 | 49.41 ▲9.30 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 23.20 ▲0.38 | 668.36 ▼5.24 | 69.33 ▲19.72 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.18 ▼0.02 | 110.89 ▲10.86 | 60.95 ▲14.76 |
Linkedin Insight Tag /wp-admin/options-general.php?page=lktags | 1,297 | 1.82 | 26.83 | 83.08 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,097 | 1.70 | 26.81 | 42.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/lktags-linkedin-insight-tags/vendor/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin does not fully uninstall, leaving 9 options in the database
- fs_active_plugins
- db_upgraded
- widget_recent-comments
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_accounts
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Lktags\\Core\\Plugin' not found in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/settings.view.php:4
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Lktags\\Core\\Plugin' not found in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/faq.view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/inc/top.view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/inc/side.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/metabox.view.php:5
- > PHP Fatal error
Uncaught Error: Class 'Pagup\\Lktags\\Controllers\\SettingsController' not found in wp-content/plugins/lktags-linkedin-insight-tags/admin/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses() in wp-content/plugins/lktags-linkedin-insight-tags/admin/views/notices/support.view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function Pagup\\Lktags\\Controllers\\add_action() in wp-content/plugins/lktags-linkedin-insight-tags/admin/controllers/TrackingController.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
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
5 plugin tags: linkedin woocommerce, linkedin insight tag, linkedin tag, linkedin advertising, linkedin ads
lktags-linkedin-insight-tags/lktags-linkedin-insight-tags.php 92% from 13 tests
"Add Linkedin insight tags for Linkedin ads" version 1.2.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected56,640 lines of code in 210 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 8,307 | 17,536 | 34,774 |
PO File | 19 | 8,095 | 9,735 | 18,634 |
Sass | 28 | 399 | 77 | 2,515 |
CSS | 14 | 92 | 13 | 472 |
JavaScript | 5 | 42 | 62 | 237 |
JSON | 1 | 0 | 0 | 8 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 73.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 2 | 3.23% |
▷ Concrete classes | 60 | 96.77% |
▷ Final classes | 0 | 0.00% |
Methods | 1,320 | |
▷ Static methods | 220 | 16.67% |
▷ Public methods | 928 | 70.30% |
▷ Protected methods | 19 | 1.44% |
▷ Private methods | 373 | 28.26% |
Functions | 105 | |
▷ Named functions | 103 | 98.10% |
▷ Anonymous functions | 2 | 1.90% |
Constants | 147 | |
▷ Global constants | 100 | 68.03% |
▷ Class constants | 47 | 31.97% |
▷ Public constants | 47 | 100.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
3 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
vendor/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
admin/assets/imgs/meta-box.png | 117.29KB | 34.42KB | ▼ 70.66% |