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.01MB] [CPU: ▼4.97ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Slide In Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.86 ▼2.84 |
Dashboard /wp-admin | 3.32 ▲0.01 | 46.85 ▼2.21 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.24 ▼2.13 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.93 ▼12.70 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.13 ▲0.79 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Slide In Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲112 | 13.18 ▼1.20 | 2.30 ▲0.42 | 36.96 ▼14.23 |
Dashboard /wp-admin | 2,222 ▲31 | 4.88 ▼0.01 | 107.03 ▲3.69 | 41.61 ▼2.70 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.02 | 40.14 ▼4.72 | 33.85 ▼3.18 |
Add New Post /wp-admin/post-new.php | 1,546 ▲26 | 23.40 ▲0.06 | 673.40 ▲33.97 | 62.67 ▲10.69 |
Media Library /wp-admin/upload.php | 1,404 ▲25 | 4.14 ▼0.09 | 95.62 ▼3.91 | 40.42 ▼2.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-slide-in-widget/wp-slide-in-widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2 in wp-slide-in-widget/assets to your readme.txt
wp-slide-in-widget/wp-slide-in-widget.php Passed 13 tests
This is the main PHP file of "Wordpress Slide In Widget" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
Add simple slide in widget to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected182 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 31 | 149 |
CSS | 1 | 2 | 0 | 20 |
JavaScript | 1 | 0 | 2 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/default-icon.png | 0.34KB | 0.24KB | ▼ 30.88% |