84% social-author-box

Code Review | Social Author Box

WordPress plugin Social Author Box scored 84% from 54 tests.

About plugin

  • Plugin page: social-author-box
  • Plugin version: 1.5.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.8
  • WordPress version: 6.3.1
  • First release: May 1, 2014
  • Latest release: Aug 4, 2018
  • Number of updates: 19
  • Update frequency: every 81.9 days
  • Top authors: leanderlindahl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 3,033 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.53ms] Passed 4 tests

An overview of server-side resources used by Social Author Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0246.11 ▲5.24
Dashboard /wp-admin3.32 ▲0.0244.63 ▼5.02
Posts /wp-admin/edit.php3.37 ▲0.0244.23 ▼1.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.93 ▼16.23
Media Library /wp-admin/upload.php3.25 ▲0.0236.39 ▲4.17
Social Author Box /wp-admin/options-general.php?page=social_author_box3.2128.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Social Author Box
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.27 ▼1.084.60 ▲2.9038.40 ▼12.07
Dashboard /wp-admin2,210 ▲215.85 ▲0.9595.30 ▼29.5443.84 ▼7.19
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0639.07 ▲2.1735.06 ▲0.59
Add New Post /wp-admin/post-new.php1,517 ▼2117.78 ▼5.39613.37 ▲23.3048.53 ▼1.85
Media Library /wp-admin/upload.php1,389 ▲14.21 ▼0.0396.50 ▲0.5043.95 ▲1.35
Social Author Box /wp-admin/options-general.php?page=social_author_box7982.0624.3724.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • db_upgraded
    • social_author_box_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_popauthorbox
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-author-box/inc/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-author-box/inc/options.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: author-box, sidebar

social-author-box/social-authorbox.php 85% from 13 tests

The primary PHP file in "Social Author Box" version 1.5.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-author-box.php" instead of "social-authorbox.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin273 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24867216
CSS11057

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity6.25
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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