Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲6.40MB] [CPU: ▲44.20ms] 50% from 4 tests
A check of server-side resources used by Cool Author Box - For Widget and Post Content
The following require your attention
- RAM: Total memory usage should be kept under 10MB (currently 10.40MB on /wp-admin/admin.php?page=freemius)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 6.40MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.38 ▲6.92 | 83.03 ▲39.54 |
Dashboard /wp-admin | 10.40 ▲7.10 | 95.81 ▲51.22 |
Posts /wp-admin/edit.php | 10.40 ▲7.05 | 103.85 ▲55.40 |
Add New Post /wp-admin/post-new.php | 10.40 ▲4.52 | 123.83 ▲40.50 |
Media Library /wp-admin/upload.php | 10.40 ▲7.17 | 79.07 ▲45.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 10.40 | 78.39 |
Server storage [IO: ▲4.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 255 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
fs_debug_mode |
widget_hm-cool-author-box-widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Cool Author Box - For Widget and Post Content
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,106 ▲360 | 15.28 ▲0.69 | 5.46 ▲3.72 | 28.46 ▼12.40 |
Dashboard /wp-admin | 2,400 ▲209 | 6.64 ▲1.76 | 141.70 ▲41.92 | 45.63 ▼0.10 |
Posts /wp-admin/edit.php | 2,309 ▲220 | 3.56 ▲1.54 | 58.41 ▲19.85 | 37.75 ▲3.30 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 21.28 ▼1.52 | 677.08 ▲23.57 | 37.05 ▼29.29 |
Media Library /wp-admin/upload.php | 1,448 ▲57 | 4.40 ▲0.21 | 84.95 ▼17.17 | 44.45 ▼0.10 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,289 | 3.23 | 47.35 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/hm-cool-author-box-widget/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- fs_accounts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- fs_debug_mode
- fs_active_plugins
- widget_hm-cool-author-box-widget
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: author bio, author box, bio, author, author info
hm-cool-author-box-widget/hm-cool-author-box-widget.php Passed 13 tests
The entry point to "Cool Author Box - For Widget and Post Content" version 2.9.5 is a PHP file that has certain tags in its header comment area
108 characters long description:
This plugin displays an author bio box in your widget area or in a single post/page with social media links.
Code Analysis 97% from 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 detected36,954 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 144 | 8,300 | 17,304 | 35,120 |
PO File | 6 | 308 | 414 | 795 |
CSS | 17 | 148 | 53 | 756 |
JavaScript | 5 | 55 | 70 | 283 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 77.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,308 | |
▷ Static methods | 197 | 15.06% |
▷ Public methods | 899 | 68.73% |
▷ Protected methods | 32 | 2.45% |
▷ Private methods | 377 | 28.82% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
assets/img/noimage.png | 13.38KB | 13.38KB | 0.01% |