Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.73ms] Passed 4 tests
Server-side resources used by Smart Author Bio Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.32 ▼2.06 |
Dashboard /wp-admin | 3.38 ▲0.03 | 54.32 ▼13.95 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 53.54 ▼3.80 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.07 | 87.00 ▼11.12 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 37.88 ▲0.32 |
Server storage [IO: ▲2.89MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_author_bio |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Author Bio Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,934 ▲188 | 14.35 ▼0.00 | 1.89 ▲0.23 | 42.08 ▼4.76 |
Dashboard /wp-admin | 2,334 ▲157 | 6.16 ▲0.62 | 105.60 ▲6.12 | 39.05 ▼6.67 |
Posts /wp-admin/edit.php | 2,270 ▲167 | 3.39 ▲1.41 | 51.05 ▲16.57 | 31.23 ▼4.36 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.38 ▼0.13 | 579.37 ▼98.53 | 35.10 ▼17.02 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.15 ▼0.04 | 85.17 ▼17.27 | 43.72 ▼4.57 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_author_bio
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Widget Configuration), #2 (Change widget fields options), #3 (Front-end result)
smart-author-bio-widget/smart-author-widget.php 77% from 13 tests
Analyzing the main PHP file in "Smart Author Bio Widget" version 1.0
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-author-bio-widget.php" instead of "smart-author-widget.php")
- Domain Path: The domain path folder does not exist ("/languages/")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected3,804 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 4 | 3,567 |
PHP | 1 | 25 | 34 | 181 |
CSS | 3 | 5 | 10 | 33 |
JavaScript | 1 | 11 | 4 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 7.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 1.73MB with 1.37MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 665.63KB | 132.31KB | ▼ 80.12% |
screenshot-2.png | 666.88KB | 136.74KB | ▼ 79.50% |
screenshot-3.png | 435.45KB | 93.61KB | ▼ 78.50% |