Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.97ms] Passed 4 tests
An overview of server-side resources used by Use Widgets Anywhere!
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.04 ▼3.69 |
Dashboard /wp-admin | 3.34 ▲0.03 | 59.41 ▲5.13 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 46.69 ▼3.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 97.61 ▲1.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.28 ▲1.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Use Widgets Anywhere!
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.23 ▼1.16 | 1.66 ▼0.51 | 44.36 ▼4.60 |
Dashboard /wp-admin | 2,209 ▲24 | 5.85 ▲0.01 | 99.58 ▼18.82 | 39.26 ▼5.86 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 39.19 ▲3.09 | 36.28 ▼0.43 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.47 ▲0.29 | 646.57 ▼48.24 | 59.10 ▲3.44 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.08 | 104.19 ▲6.87 | 46.29 ▲4.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Trait 'CRPlugins\\WidgetsAnywhere\\Helper\otices_Trait' not found in wp-content/plugins/use-widgets-anywhere/includes/helper/class-helper.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: widgets
use-widgets-anywhere/class-widgets-anywhere.php 77% from 13 tests
The main PHP script in "Use Widgets Anywhere!" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("use-widgets-anywhere.php" instead of "class-widgets-anywhere.php")
- Domain Path: The domain path folder was not found ("/i18n/languages/")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin142 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 107 | 142 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin