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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.77ms] Passed 4 tests
This is a short check of server-side resources used by WP Widget Cloner
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.40 ▲0.89 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.12 ▲1.64 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 47.17 ▲4.47 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 86.51 ▼10.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.08 ▲1.04 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Widget Cloner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.31 ▼1.08 | 4.49 ▲2.80 | 45.13 ▼3.75 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▼0.04 | 97.90 ▼3.71 | 39.25 ▼10.69 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.04 | 35.34 ▲1.40 | 32.70 ▼0.89 |
Add New Post /wp-admin/post-new.php | 1,518 ▼24 | 23.34 ▲4.98 | 628.40 ▼23.62 | 51.12 ▼16.36 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▼0.00 | 103.64 ▼0.47 | 43.91 ▼3.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-widget-cloner/admin/partials/wp-widget-cloner-admin-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The 'Clone it' button can be found at the bottom of each widget in between 'Delete' and 'Close'.) image missing
wp-widget-cloner/wp-widget-cloner.php Passed 13 tests
This is the main PHP file of "WP Widget Cloner" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
95 characters long description:
WP Widget cloner makes a copy of the widget that you can then drag and drop to another sidebar.
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
Good job! No executable or dangerous file extensions detected210 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 77 | 350 | 127 |
JavaScript | 1 | 21 | 5 | 63 |
Markdown | 1 | 10 | 0 | 20 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 22.22% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin