Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼142.02ms] Passed 4 tests
An overview of server-side resources used by WP tinyCampaign Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.01 | 41.31 ▼2.02 |
Dashboard /wp-admin | 3.07 ▲0.01 | 52.30 ▼3.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 45.93 ▼4.97 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 107.20 ▼557.65 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 43.44 ▲7.25 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tinyc-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP tinyCampaign Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 15.83 ▲0.32 | 11.19 ▲0.09 | 54.46 ▲0.57 |
Dashboard /wp-admin | 2,961 ▲28 | 5.95 ▲0.01 | 184.15 ▲8.03 | 128.92 ▼1.86 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▲0.00 | 64.92 ▼12.19 | 86.27 ▼14.99 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.27 ▲0.59 | 435.15 ▼9.66 | 131.09 ▲0.69 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.02 | 170.76 ▲15.13 | 148.29 ▲13.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_tinyc-widget
Smoke tests Passed 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 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Widget Settings), #2 (Example of widget in the sidebar)
wp-tinycampaign-widget/wp_tinyCampaign_widget.php 92% from 13 tests
The entry point to "WP tinyCampaign Widget" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-tinycampaign-widget.php" instead of "wp_tinyCampaign_widget.php")
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
No dangerous file extensions were detected170 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 20 | 49 | 138 |
PO File | 1 | 8 | 8 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 12.74KB | 3.95KB | ▼ 69.01% |
screenshot-1.png | 57.15KB | 16.02KB | ▼ 71.97% |