Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.30ms] Passed 4 tests
An overview of server-side resources used by Gravy Events Widgets
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.08 | 48.24 ▲3.32 |
Dashboard /wp-admin | 3.70 ▲0.14 | 54.05 ▼8.72 |
Posts /wp-admin/edit.php | 3.75 ▲0.07 | 53.98 ▲3.64 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.09 | 88.81 ▼16.52 |
Media Library /wp-admin/upload.php | 3.56 ▲0.07 | 39.49 ▲0.73 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_gravy-events-mood |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_gravy-events-channel |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Gravy Events Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.81 ▼0.57 | 8.21 ▲6.33 | 42.15 ▲2.48 |
Dashboard /wp-admin | 2,193 ▲13 | 5.54 ▼0.26 | 96.22 ▲0.04 | 42.61 ▼3.83 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.00 ▼0.04 | 35.59 ▼0.72 | 33.61 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,530 ▼1 | 23.33 ▼0.03 | 673.87 ▼3.33 | 60.45 ▲7.36 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.08 | 107.04 ▲3.00 | 43.35 ▲0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_gravy-events-mood
- widget_gravy-events-channel
- db_upgraded
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/gravy-events-widgets/views/widget-mood.php
- > /wp-content/plugins/gravy-events-widgets/views/widget-channel.php
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravy-events-widgets/views/admin-channel.php:8
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gravy-events-widgets/views/widget-mood.php on line 7
- > PHP Notice
Undefined variable: title in wp-content/plugins/gravy-events-widgets/views/widget-mood.php on line 4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/gravy-events-widgets/views/widget-channel.php on line 7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gravy-events-widgets/views/admin-mood.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gravy-events-widgets/gravy-events-widget.php:32
- > PHP Notice
Undefined variable: title in wp-content/plugins/gravy-events-widgets/views/widget-channel.php on line 4
- > PHP Notice
Undefined variable: events in wp-content/plugins/gravy-events-widgets/views/widget-mood.php on line 7
- > PHP Notice
Undefined variable: events in wp-content/plugins/gravy-events-widgets/views/widget-channel.php on line 7
- > 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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: local, experiences, location, events, widget...
gravy-events-widgets/gravy-events-widget.php 85% from 13 tests
The entry point to "Gravy Events Widgets" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gravy-events-widgets.php" instead of "gravy-events-widget.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin471 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 71 | 155 | 315 |
CSS | 2 | 10 | 1 | 135 |
PO File | 1 | 0 | 0 | 17 |
JavaScript | 2 | 2 | 8 | 4 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin