Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.61ms] Passed 4 tests
Analyzing server-side resources used by Simple Widget Factory Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.81 ▲0.32 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.15 ▼2.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.94 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 80.97 ▼0.32 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 44.54 ▲12.12 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Widget Factory Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.69 ▼0.69 | 1.60 ▼0.13 | 42.91 ▼5.53 |
Dashboard /wp-admin | 2,221 ▲36 | 5.79 ▼0.11 | 101.08 ▼17.29 | 84.42 ▲41.69 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.99 ▼0.06 | 37.52 ▲1.39 | 35.03 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,681 ▲160 | 21.95 ▼1.30 | 620.57 ▲18.73 | 44.24 ▼8.16 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.22 ▼0.09 | 98.15 ▲0.45 | 79.91 ▲35.71 |
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 detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: custom widgets, wordpress, wordpressorg, widget factory
simple-widget-factory/simple-widget-factory.php 92% from 13 tests
"Simple Widget Factory Plugin" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
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
Everything looks great! No dangerous files found in this plugin214 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 53 | 174 |
CSS | 1 | 0 | 0 | 38 |
JavaScript | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.53MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot/5.png | 46.61KB | 13.01KB | ▼ 72.08% |
screenshot/4.png | 48.84KB | 13.19KB | ▼ 73.00% |
images/widgets.png | 0.66KB | 0.45KB | ▼ 31.46% |
screenshot/1.png | 7.21KB | 4.19KB | ▼ 41.80% |
screenshot/6.png | 54.87KB | 13.88KB | ▼ 74.70% |