Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.81ms] Passed 4 tests
Server-side resources used by Lana Widgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.55 ▼4.65 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.20 ▼3.63 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.41 ▲3.28 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.47 ▼5.95 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.99 ▲2.98 |
Server storage [IO: ▲4.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 63 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Lana Widgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.24 ▼1.05 | 1.68 ▼0.71 | 44.09 ▼1.86 |
Dashboard /wp-admin | 2,213 ▲25 | 5.91 ▲1.03 | 101.64 ▼11.51 | 38.77 ▼3.45 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.06 ▲0.04 | 39.05 ▲0.82 | 35.59 ▲1.32 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 18.51 ▼4.68 | 584.03 ▼22.42 | 64.21 ▲5.77 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.17 ▼0.00 | 95.17 ▼2.34 | 41.71 ▼3.19 |
Lana Widgets /wp-admin/lana-widgets-settings.php | 26 | 0.44 | 0.06 | 15.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v3/class-lana-title-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v4/class-lana-carousel-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v3/class-lana-jumbotron-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v3/class-lana-thumbnail-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v4/class-lana-panel-widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v4/class-lana-jumbotron-widget.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v4/class-lana-text-widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v4/class-lana-alert-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v3/class-lana-well-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/lana-widgets/includes/v3/class-lana-carousel-widget.php:6
- > 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/lana-widgets-settings.php
- > Network (severe)
wp-admin/lana-widgets-settings.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5 in lana-widgets/assets to your readme.txt
lana-widgets/lana-widgets.php Passed 13 tests
The primary PHP file in "Lana Widgets" version 1.2.0 is used by WordPress to initiate all plugin functionality
33 characters long description:
Widgets with Bootstrap framework.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin30,183 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 1,529 | 53 | 20,203 |
JavaScript | 13 | 2,036 | 1,305 | 7,106 |
PHP | 19 | 692 | 1,042 | 2,586 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 9.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 123 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 10 | 62.50% |
▷ Anonymous functions | 6 | 37.50% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/plugin-header.png | 28.91KB | 29.86KB | 0.00% |
assets/img/lana-image-placeholder.png | 1.52KB | 1.62KB | 0.00% |