Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-upload-widget/simpleUploadWidget.php+48
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.34ms] Passed 4 tests
Analyzing server-side resources used by Simple Upload Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 7.42 ▼37.12 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.95 ▼56.85 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.58 ▼54.32 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.29 ▼89.08 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.36 ▼28.26 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_simple-upload-widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Upload Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲193 | 14.67 ▼0.08 | 1.78 ▼0.15 | 40.44 ▲2.31 |
Dashboard /wp-admin | 2,345 ▲157 | 6.48 ▲1.57 | 136.48 ▲21.25 | 41.40 ▼0.87 |
Posts /wp-admin/edit.php | 2,254 ▲165 | 3.35 ▲1.30 | 54.66 ▲13.98 | 35.08 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,530 ▲11 | 21.25 ▼1.91 | 630.66 ▼49.08 | 31.10 ▼22.50 |
Media Library /wp-admin/upload.php | 1,384 ▼4 | 4.23 ▼0.05 | 86.12 ▼20.11 | 40.78 ▼3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/simple-upload-widget/simpleUploadWidget.php+48
Function create_function() is deprecated
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_simple-upload-widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-upload-widget/simpleUploadWidget.php:11
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: upload, single, template, widget, image...
simple-upload-widget/simpleUploadWidget.php 92% from 13 tests
"Simple Upload Widget" version 0.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-upload-widget.php" instead of "simpleUploadWidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected61 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 8 | 12 | 36 |
JavaScript | 1 | 3 | 8 | 20 |
Markdown | 1 | 4 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
No PNG images were found in this plugin