83% awesome-author-box-widget

Code Review | Awesome Author Box Widget

WordPress plugin Awesome Author Box Widget scored83%from 54 tests.

About plugin

  • Plugin page: awesome-author-bo...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.3
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Nov 20, 2019
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: modinatheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /736 total downloads

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.07MB] [CPU: ▼3.07ms] Passed 4 tests

This is a short check of server-side resources used by Awesome Author Box Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1048.49 ▲4.98
Dashboard /wp-admin3.37 ▲0.0754.61 ▼5.16
Posts /wp-admin/edit.php3.49 ▲0.1352.79 ▼0.74
Add New Post /wp-admin/post-new.php5.95 ▲0.0793.44 ▼1.68
Media Library /wp-admin/upload.php3.28 ▲0.0536.93 ▼4.69

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_modina_author
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Awesome Author Box Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,256 ▲49515.96 ▲1.6122.92 ▲20.8546.76 ▲1.51
Dashboard /wp-admin2,343 ▲1666.16 ▲0.57106.36 ▲11.6443.58 ▼0.72
Posts /wp-admin/edit.php2,271 ▲1713.35 ▲1.3850.94 ▲11.6136.10 ▼2.37
Add New Post /wp-admin/post-new.php1,687 ▲15822.18 ▼0.79613.49 ▼71.9436.77 ▼14.00
Media Library /wp-admin/upload.php1,408 ▲84.11 ▲0.0383.56 ▼20.4542.47 ▼0.58

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_modina_author
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 | 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/awesome-author-box-widget/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === awesome-author-box-widget === )
The official readme.txt might help

awesome-author-box-widget/index.php 85% from 13 tests

The main file in "Awesome Author Box Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("awesome-author-box-widget.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin5,380 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS35112,499
PHP12912170
JavaScript128040

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity7.25
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected