74% starbox

Code Review | Starbox - the Author Box for Humans

WordPress plugin Starbox - the Author Box for Humans scored74%from 54 tests.

About plugin

  • Plugin page: starbox
  • Plugin version: 3.4.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2013
  • Latest release: Sep 7, 2023
  • Number of updates: 521
  • Update frequency: every 7.0 days
  • Top authors: cifi (100%)

Code review

54 tests

User reviews

203 reviews

Install metrics

50,000+ active /429,455 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.46MB] [CPU: ▼1.80ms] Passed 4 tests

A check of server-side resources used by Starbox - the Author Box for Humans
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.85 ▲0.3837.19 ▼1.29
Dashboard /wp-admin3.83 ▲0.5350.87 ▲3.84
Posts /wp-admin/edit.php3.88 ▲0.5248.44 ▼1.07
Add New Post /wp-admin/post-new.php6.36 ▲0.4786.25 ▼8.67
Media Library /wp-admin/upload.php3.69 ▲0.4638.78 ▲4.59
StarBox 0 /wp-admin/options-general.php?page=abh_settings3.7939.83

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Starbox - the Author Box for Humans: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.20 ▼0.794.22 ▲2.4741.51 ▼0.64
Dashboard /wp-admin2,225 ▲374.89 ▼0.99101.31 ▼7.3939.76 ▼4.80
Posts /wp-admin/edit.php2,102 ▲132.04 ▲0.0438.54 ▼3.1033.30 ▼6.65
Add New Post /wp-admin/post-new.php1,529 ▲1523.39 ▲5.86671.88 ▲46.7573.08 ▲25.06
Media Library /wp-admin/upload.php1,407 ▲164.24 ▲0.0196.11 ▼1.2340.60 ▼2.48
StarBox 0 /wp-admin/options-general.php?page=abh_settings1,2911.7325.2154.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/starbox/config/config.php+15
    Constant _ABH_NONCE_ID_ already defined
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 21× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/starbox/classes/Tools.php
    • > /wp-content/plugins/starbox/starbox.php
    • > /wp-content/plugins/starbox/classes/FrontController.php
    • > /wp-content/plugins/starbox/classes/ObjController.php
    • > /wp-content/plugins/starbox/classes/HookController.php
    • > /wp-content/plugins/starbox/themes/admin/UserSettings.php
    • > /wp-content/plugins/starbox/uninstall.php
    • > /wp-content/plugins/starbox/themes/admin/Notices.php
    • > /wp-content/plugins/starbox/config/paths.php
    • > /wp-content/plugins/starbox/core/UserSettings.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: author, bio, author profile fields, author social icons, author box...

starbox/starbox.php Passed 13 tests

This is the main PHP file of "Starbox - the Author Box for Humans" version 3.4.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
121 characters long description:
Starbox is the Author Box for Humans. Professional Themes to choose from, HTML5, Social Media Profiles, Google Authorship

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin5,870 lines of code in 52 files:
LanguageFilesBlank linesComment linesLines of code
PHP215296602,216
CSS16338142,210
PO File54255201,117
JavaScript9130295
JSON10032

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.72
Average class complexity37.13
▷ Minimum class complexity4.00
▷ Maximum class complexity171.00
Average method complexity5.90
▷ Minimum method complexity1.00
▷ Maximum method complexity55.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods111
▷ Static methods3228.83%
▷ Public methods9181.98%
▷ Protected methods54.50%
▷ Private methods1513.51%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants28
▷ Global constants28100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin