Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- This plugin did not install gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲0.16MB] [CPU: ▼4.45ms] Passed 4 tests
This is a short check of server-side resources used by WP LinkPress Lite - LinkedIn comments for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.13 | 46.02 ▲6.33 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.27 ▼4.92 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 50.95 ▲2.55 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 83.56 ▼17.19 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.63 ▲1.75 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 19 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_wplinkpress_comments |
New WordPress options |
---|
widget_theysaidso_widget |
wplinkpress_lite_notice_update |
can_compress_scripts |
wplinkpress_lite_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
wplinkpress_page_id |
Browser metrics Passed 4 tests
Checking browser requirements for WP LinkPress Lite - LinkedIn comments for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲203 | 13.59 ▼0.69 | 8.26 ▲6.51 | 31.80 ▼11.79 |
Dashboard /wp-admin | 2,231 ▲40 | 4.85 ▼0.03 | 109.62 ▲4.03 | 43.42 ▲2.65 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 1.98 ▼0.01 | 40.47 ▲4.83 | 39.55 ▲5.28 |
Add New Post /wp-admin/post-new.php | 6,448 ▲4,906 | 25.27 ▲7.23 | 911.15 ▲310.37 | 60.70 ▲6.91 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.19 ▼0.03 | 98.81 ▲2.56 | 47.19 ▲2.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_wplinkpress_comments
- Zombie WordPress options were found after uninstall: 9 options
- wplinkpress_page_id
- db_upgraded
- wplinkpress_lite_notice_update
- widget_recent-posts
- wplinkpress_lite_version
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: info_present in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-linkpress-lite/admin/templates/tabs/comments-moderate.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php:32
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 24
- > PHP Notice
Undefined variable: authorizationUrl in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-linkpress-lite/admin/templates/wplinkpress-lite-admin-settings-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-linkpress-lite/admin/templates/tabs/authorize-linkedin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-linkpress-lite/wplinkpress-lite.php:13
- > PHP Warning
Use of undefined constant WPLINKPRESS_LITE_URL - assumed 'WPLINKPRESS_LITE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-linkpress-lite/templates/comments-form.php on line 3
- > PHP Notice
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: linkedin, social, comments
wp-linkpress-lite/wplinkpress-lite.php 85% from 13 tests
The entry point to "WP LinkPress Lite - LinkedIn comments for WordPress" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-linkpress-lite.php" instead of "wplinkpress-lite.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,230 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 144 | 57 | 862 |
CSS | 2 | 35 | 8 | 153 |
JavaScript | 2 | 20 | 4 | 137 |
PO File | 1 | 24 | 24 | 78 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.25 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 33 | |
▷ Static methods | 3 | 9.09% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
No PNG images were found in this plugin