Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.78ms] Passed 4 tests
A check of server-side resources used by Recent Shots Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 41.62 ▲1.08 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.53 ▼9.86 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.49 ▲3.09 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.84 ▼9.41 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.74 ▲4.83 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent_shots_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recent Shots Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 13.30 ▼1.12 | 4.67 ▲2.82 | 45.00 ▲1.70 |
Dashboard /wp-admin | 2,218 ▲12 | 4.86 ▼0.02 | 113.14 ▲9.05 | 41.59 ▼3.86 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.00 | 39.56 ▲0.75 | 35.27 ▲1.38 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.16 ▲5.64 | 681.34 ▲80.96 | 57.88 ▲4.32 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.18 ▼0.00 | 95.55 ▼7.59 | 45.33 ▲5.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_recent_shots_widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/recent-shots-widget/includes/widget-output.php
- 9× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: username in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 11
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/recent-shots-widget/includes/form.php:1
- > PHP Notice
Undefined variable: api_key in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-shots-widget/recent-shots-widget.php:14
- > PHP Notice
Undefined variable: number in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 11
- > PHP Notice
Undefined variable: is_team in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 5
- > PHP Warning
file_get_contents(https://api.dribbble.com/v1/users//shots?per_page=&access_token=): failed to open stream: HTTP request failed! HTTP/1.0 404 Not Found\r in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 12
- > PHP Notice
Undefined variable: show_follow_btn in wp-content/plugins/recent-shots-widget/includes/widget-output.php on line 47
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: shot, feed, dribbble, widget
recent-shots-widget/recent-shots-widget.php Passed 13 tests
The main PHP script in "Recent Shots Widget" version 1.0.0 is automatically included on every request by WordPress
43 characters long description:
Displays user's recent shots from Dribbble.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin281 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 20 | 161 |
CSS | 1 | 16 | 0 | 110 |
SVG | 5 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 6.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin