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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.37ms] Passed 4 tests
Analyzing server-side resources used by Simple Author Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.75 ▲4.69 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.19 ▼9.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.03 | 48.81 ▼11.62 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.03 | 85.32 ▼16.24 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 35.34 ▲0.05 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_buffercode_simple_author_info |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Author Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.18 ▼0.18 | 2.05 ▲0.42 | 41.30 ▼1.71 |
Dashboard /wp-admin | 2,198 ▲21 | 5.57 ▼0.02 | 87.40 ▼17.05 | 42.24 ▼2.55 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 42.72 ▲6.43 | 38.07 ▲2.02 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.54 ▼0.13 | 687.66 ▼7.02 | 55.68 ▼5.11 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.13 ▼0.05 | 97.43 ▼9.85 | 44.97 ▼2.59 |
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 7 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_buffercode_simple_author_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-author-widget/simple-author-widget.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Simple Author Output Screen), #2 (Widget Selection), #3 (Social networking profile page)
simple-author-widget/simple-author-widget.php Passed 13 tests
The main PHP script in "Simple Author Widget" version 1.1 is automatically included on every request by WordPress
89 characters long description:
Easy way to display the Author profile with four social networking profiles using widget.
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 detected187 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 11 | 158 |
CSS | 1 | 4 | 2 | 29 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 6.55KB | 3.34KB | ▼ 48.95% |
screenshot-3.png | 33.37KB | 15.09KB | ▼ 54.77% |
image/gp.png | 4.23KB | 1.44KB | ▼ 65.93% |
image/fb.png | 3.35KB | 0.69KB | ▼ 79.31% |
screenshot-1.png | 12.28KB | 4.87KB | ▼ 60.34% |