78% sleek-author-box

Code Review | Sleek Author Box

WordPress plugin Sleek Author Box scored78%from 54 tests.

About plugin

  • Plugin page: sleek-author-box
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.1
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Jan 23, 2023
  • Number of updates: 6
  • Update frequency: every 60.0 days
  • Top authors: kantbtrue (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /789 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.13ms] Passed 4 tests

Server-side resources used by Sleek Author Box
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.96 ▲8.38
Dashboard /wp-admin3.39 ▲0.0448.92 ▼10.10
Posts /wp-admin/edit.php3.50 ▲0.1444.25 ▼3.50
Add New Post /wp-admin/post-new.php5.97 ▲0.0890.17 ▲5.89
Media Library /wp-admin/upload.php3.31 ▲0.0830.44 ▼4.82

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
sleek_author_box_settings
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Sleek Author Box
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.23 ▼0.381.96 ▲0.4443.33 ▲1.77
Dashboard /wp-admin2,192 ▲125.61 ▲0.0291.59 ▲4.1343.56 ▲3.45
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0036.09 ▼4.5434.00 ▼7.18
Add New Post /wp-admin/post-new.php1,531 ▲323.28 ▲0.15602.05 ▼94.5458.62 ▲2.41
Media Library /wp-admin/upload.php1,400 ▼34.22 ▼0.0898.08 ▼9.7943.81 ▼4.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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 0% 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
Please fix the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/sleek-author-box/frontend/templates/partials/end.php
    • > /wp-content/plugins/sleek-author-box/frontend/templates/partials/start.php
    • > /wp-content/plugins/sleek-author-box/frontend/templates/partials/social-links.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/sleek-author-box/frontend/templates/partials/social-links.php on line 16
    • > PHP Notice
      Undefined variable: args in wp-content/plugins/sleek-author-box/frontend/templates/partials/social-links.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/sleek-author-box/skins/default/index.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/sleek-author-box/frontend/templates/sleek-author-box-templ.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: author widget, author social icons, responsive author box, author box, writer box

sleek-author-box/sleek-author-box.php 85% from 13 tests

The main file in "Sleek Author Box" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin710 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
PHP14123498519
CSS2315143
SVG460048

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.20
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods521.74%
▷ Public methods2295.65%
▷ Protected methods14.35%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin