Benchmarks
Plugin footprint 23% 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
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/lord-linus-online-visitor/lord-linus-online-visitor.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; LordlinusOnlineV has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.34ms] Passed 4 tests
Server-side resources used by Lord Linus Online Visitor Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.77 ▼32.18 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.24 ▼43.64 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.11 ▼39.29 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.26 ▼90.25 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.41 ▼27.00 |
Uninstall /wp-admin/admin.php?page=uninstall | 2.09 | 4.94 |
Online Visitor /wp-admin/admin.php?page=llov-main | 2.09 | 5.89 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 8 new options
New tables |
---|
useronline |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
lord_total_visitor |
widget_lordlinusonlinev |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Lord Linus Online Visitor Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.24 ▼0.06 | 1.74 ▼0.09 | 45.66 ▲0.63 |
Dashboard /wp-admin | 2,209 ▲32 | 5.51 ▼0.03 | 95.80 ▼7.44 | 75.63 ▲30.11 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.03 ▲0.09 | 34.69 ▼3.08 | 31.91 ▼2.98 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.22 ▼0.02 | 762.13 ▲99.08 | 62.09 ▼2.70 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.20 ▼0.00 | 94.00 ▼8.20 | 70.67 ▲27.35 |
Uninstall /wp-admin/admin.php?page=uninstall | 819 | 1.99 | 23.69 | 23.70 |
Online Visitor /wp-admin/admin.php?page=llov-main | 842 | 2.03 | 25.59 | 23.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/lord-linus-online-visitor/lord-linus-online-visitor.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; LordlinusOnlineV has a deprecated constructor
- The plugin did not uninstall successfully, leaving 1 table in the database
- useronline
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- lord_total_visitor
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_lordlinusonlinev
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=llov-main
- > Deprecated in wp-content/plugins/lord-linus-online-visitor/lord-linus-online-visitor.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; LordlinusOnlineV has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=llov-main
- > Deprecated in wp-content/plugins/lord-linus-online-visitor/lord-linus-online-visitor.php+91
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=llov-main
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in LordlinusOnlineV is deprecated since version 4.3.0! Use __construct() instead.
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 take a closer look at the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lord-linus-online-visitor/lord-linus-online-visitor.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/lord-linus-online-visitor/install-script.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/lord-linus-online-visitor/menu-pages/setting.php:41
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== lord-linus-online-visitor ===
) - Screenshots: Please add images for these screenshots: #1 (Online Widget), #2 (Setting Menu)
lord-linus-online-visitor/lord-linus-online-visitor.php Passed 13 tests
The primary PHP file in "Lord Linus Online Visitor Widget" version 1.2 is used by WordPress to initiate all plugin functionality
118 characters long description:
This plugin shows the number of Online Visitor to your site. This is based on 5 minute activity of users on your site.
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
Success! There were no dangerous files found in this plugin286 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 14 | 9 | 211 |
PO File | 2 | 19 | 19 | 75 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ 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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot2.png | 9.06KB | 4.30KB | ▼ 52.48% |
sms.png | 0.13KB | 0.11KB | ▼ 17.52% |
screenshot1.png | 2.28KB | 1.31KB | ▼ 42.56% |