79% hm-cool-author-box-widget

Code Review | Cool Author Box - For Widget and Post Content

WordPress plugin Cool Author Box - For Widget and Post Content scored79%from 54 tests.

About plugin

  • Plugin page: hm-cool-author-bo...
  • Plugin version: 2.9.5
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Nov 22, 2018
  • Latest release: Jul 9, 2023
  • Number of updates: 103
  • Update frequency: every 16.4 days
  • Top authors: mhmrajib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /4,472 total downloads

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)
PageMemory (MB)CPU Time (ms)
Home /10.38 ▲6.9283.03 ▲39.54
Dashboard /wp-admin10.40 ▲7.1095.81 ▲51.22
Posts /wp-admin/edit.php10.40 ▲7.05103.85 ▲55.40
Add New Post /wp-admin/post-new.php10.40 ▲4.52123.83 ▲40.50
Media Library /wp-admin/upload.php10.40 ▲7.1779.07 ▲45.54
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius10.4078.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,106 ▲36015.28 ▲0.695.46 ▲3.7228.46 ▼12.40
Dashboard /wp-admin2,400 ▲2096.64 ▲1.76141.70 ▲41.9245.63 ▼0.10
Posts /wp-admin/edit.php2,309 ▲2203.56 ▲1.5458.41 ▲19.8537.75 ▲3.30
Add New Post /wp-admin/post-new.php1,554 ▲2121.28 ▼1.52677.08 ▲23.5737.05 ▼29.29
Media Library /wp-admin/upload.php1,448 ▲574.40 ▲0.2184.95 ▼17.1744.45 ▼0.10
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius1,2893.2347.3529.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:
LanguageFilesBlank linesComment linesLines of code
PHP1448,30017,30435,120
PO File6308414795
CSS1714853756
JavaScript55570283

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 code0.62
Average class complexity77.12
▷ Minimum class complexity1.00
▷ Maximum class complexity3,073.00
Average method complexity4.51
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits6
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods1,308
▷ Static methods19715.06%
▷ Public methods89968.73%
▷ Protected methods322.45%
▷ Private methods37728.82%
Functions104
▷ Named functions10399.04%
▷ Anonymous functions10.96%
Constants153
▷ Global constants10669.28%
▷ Class constants4730.72%
▷ Public constants47100.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
FileSize - originalSize - compressedSavings
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
assets/img/noimage.png13.38KB13.38KB0.01%