Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲1.86MB] [CPU: ▼137.65ms] Passed 4 tests
Analyzing server-side resources used by WP Author Bio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.68 ▲1.95 | 28.99 ▲10.26 |
Dashboard /wp-admin | 4.96 ▲1.89 | 44.84 ▲5.92 |
Posts /wp-admin/edit.php | 5.01 ▲1.90 | 44.16 ▲4.33 |
Add New Post /wp-admin/post-new.php | 7.25 ▲1.81 | 82.18 ▼571.10 |
Media Library /wp-admin/upload.php | 4.86 ▲1.85 | 40.83 ▲16.48 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 4.89 | 34.25 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 375 new files
Database: no new tables, 6 new options
New WordPress options |
---|
fs_api_cache |
widget_sexy_author_bio_widget |
sexyauthorbio_settings |
fs_debug_mode |
fs_active_plugins |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Author Bio
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,704 ▲103 | 15.70 ▼0.37 | 5.00 ▼0.33 | 74.41 ▲0.80 |
Dashboard /wp-admin | 2,965 ▲66 | 6.01 ▼0.16 | 114.04 ▼13.64 | 180.36 ▲11.93 |
Posts /wp-admin/edit.php | 2,778 ▲35 | 3.23 ▼0.01 | 64.02 ▲2.97 | 150.04 ▲8.69 |
Add New Post /wp-admin/post-new.php | 3,767 ▼48 | 19.18 ▼0.12 | 417.14 ▼33.49 | 162.01 ▼10.50 |
Media Library /wp-admin/upload.php | 1,788 ▲36 | 5.46 ▲0.01 | 137.50 ▼17.23 | 201.56 ▲17.55 |
Freemius Debug [v.1.2.1.5] /wp-admin/admin.php?page=freemius | 1,433 | 2.44 | 54.71 | 126.30 |
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 did not uninstall successfully, leaving 5 options in the database
- widget_sexy_author_bio_widget
- fs_debug_mode
- fs_accounts
- fs_active_plugins
- fs_api_cache
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: social in wp-content/plugins/sexy-author-bio/public/icons-standard.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sexy-author-bio/public/icons-standard.php on line 3
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/sexy-author-bio/public/icons-coauthor.php on line 3
- > PHP Notice
Undefined variable: social in wp-content/plugins/sexy-author-bio/public/icons-coauthor.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function fetch_feed() in wp-content/plugins/sexy-author-bio/admin/views/metabox.php:36
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (40 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Example WP Author Bio Front-End Display #1), #2 (Example WP Author Bio User Settings), #3 (Example WP Author Bio Display & Design Settings)
sexy-author-bio/sexy-author-bio.php 92% from 13 tests
Analyzing the main PHP file in "WP Author Bio" version 1.5.5
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected21,822 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 85 | 3,658 | 8,502 | 15,861 |
PO File | 5 | 1,453 | 1,508 | 3,734 |
Sass | 15 | 267 | 82 | 1,636 |
JavaScript | 5 | 37 | 63 | 230 |
Markdown | 2 | 68 | 0 | 214 |
CSS | 10 | 0 | 0 | 77 |
JSON | 2 | 0 | 0 | 42 |
YAML | 2 | 2 | 0 | 28 |
PHP code 0% from 2 tests
Analyzing cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 1,019)
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 110)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 45.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,019.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 110.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 0 | 0.00% |
Methods | 690 | |
▷ Static methods | 99 | 14.35% |
▷ Public methods | 513 | 74.35% |
▷ Protected methods | 14 | 2.03% |
▷ Private methods | 163 | 23.62% |
Functions | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 94 | |
▷ Global constants | 76 | 80.85% |
▷ Class constants | 18 | 19.15% |
▷ Public constants | 18 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
238 compressed PNG files occupy 0.52MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/images/flat-square-rounded/delicious.png | 0.71KB | 0.69KB | ▼ 1.80% |
public/assets/images/shadow-circle/google.png | 2.63KB | 2.70KB | 0.00% |
public/assets/images/shadow-square/sabyahoo.png | 2.08KB | 2.09KB | 0.00% |
public/assets/images/shadow-square/facebook.png | 2.00KB | 2.03KB | 0.00% |
public/assets/images/shadow-square/wordpress.png | 2.49KB | 2.53KB | 0.00% |