87% fancier-author-box

Code Review | Fancier Author Box by ThematoSoup

WordPress plugin Fancier Author Box by ThematoSoup scored 87% from 54 tests.

About plugin

  • Plugin page: fancier-author-box
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 5.9.2
  • First release: Jun 27, 2012
  • Latest release: Sep 15, 2015
  • Number of updates: 63
  • Update frequency: every 18.7 days
  • Top authors: slobodanmanic (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

8,000+ active / 194,043 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼305.59ms] Passed 4 tests

This is a short check of server-side resources used by Fancier Author Box by ThematoSoup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1456.24 ▼0.96
Dashboard /wp-admin3.61 ▲0.2040.85 ▲7.73
Posts /wp-admin/edit.php3.84 ▲0.1938.35 ▼0.28
Add New Post /wp-admin/post-new.php7.08 ▲0.10100.90 ▼1,220.71
Media Library /wp-admin/upload.php3.49 ▲0.1927.49 ▼0.42
Fancier Author Box /wp-admin/options-general.php?page=fancier_author_box3.4624.33

Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 1 new option
New WordPress options
ts_fab_display_settings

Browser metrics Passed 4 tests

Fancier Author Box by ThematoSoup: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,909 ▲16716.57 ▲0.889.88 ▲3.382.50 ▲0.32
Dashboard /wp-admin2,897 ▲366.05 ▼0.00132.00 ▼8.70168.12 ▲5.69
Posts /wp-admin/edit.php2,693 ▲73.24 ▼0.0163.72 ▼0.31195.75 ▲17.41
Add New Post /wp-admin/post-new.php1,776 ▲11521.53 ▲5.41459.88 ▲50.47164.46 ▼27.85
Media Library /wp-admin/upload.php1,703 ▲55.48 ▼0.05151.56 ▲4.47192.15 ▲1.13
Fancier Author Box /wp-admin/options-general.php?page=fancier_author_box1,6906.18176.03205.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 3× 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/fancier-author-box/includes/ts-fab-user-settings.php:139
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fancier-author-box/includes/ts-fab-settings.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fancier-author-box/ts-fab.php:24

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=fancier_author_box
    • > Network (severe)
    https://apis.google.com/u/0/_/widget/render/follow?usegapi=1&annotation=none&height=20&rel=publisher&origin=http%3A%2F%2Fwp.com&url=http%3A%2F%2Fplus.google.com%2F104360438826479763912&gsrc=3p&ic=1&jsh=m%3B%2F_%2Fscs%2Fabc-static%2F_%2Fjs%2Fk%3Dgapi.lb.en.NnK9YPjtg-w.O%2Fd%3D1%2Frs%3DAHpOoo9KePDGVlGjp-rlXwDM1kUO2Eh4gg%2Fm%3D__features__#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1647263798348&_gfid=I0_1647263798348&parent=http%3A%2F%2Fwp.com&pfname=&rpctoken=27740787 - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 18 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Fancier Author Box underneath your posts), #2 (Global options page (display & color settings)), #3 (User settings page)
You can take inspiration from this readme.txt

fancier-author-box/ts-fab.php 77% from 13 tests

This is the main PHP file of "Fancier Author Box by ThematoSoup" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("fancier-author-box.php" instead of "ts-fab.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 207 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin2,322 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PO File104836541,207
PHP5180246837
CSS22415213
JavaScript415065

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png66.33KB22.03KB▼ 66.78%
images/twitter.png1.79KB0.69KB▼ 61.63%
images/youtube.png1.92KB0.97KB▼ 49.26%
images/googleplus.png1.75KB0.82KB▼ 53.42%
screenshot-1.png102.53KB26.27KB▼ 74.38%