94% custom-author-bio

Code Review | Simple Scroll To Top Button

WordPress plugin Simple Scroll To Top Button scored 94% from 54 tests.

About plugin

  • Plugin page: custom-author-bio
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.6
  • WordPress version: 5.8.1
  • First release: Jun 18, 2018
  • Latest release: Jun 18, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: maherhossain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 345 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼139.54ms] Passed 4 tests

An overview of server-side resources used by Simple Scroll To Top Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0137.20 ▲7.41
Dashboard /wp-admin3.06 ▲0.0146.66 ▲1.26
Posts /wp-admin/edit.php3.11 ▲0.0145.45 ▲1.86
Add New Post /wp-admin/post-new.php5.42 ▼0.0190.82 ▼561.03
Media Library /wp-admin/upload.php3.01 ▲0.0034.94 ▼0.24

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Scroll To Top Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲22716.27 ▲0.4115.00 ▲6.0249.01 ▲3.41
Dashboard /wp-admin2,970 ▲345.88 ▼0.09148.46 ▼9.70102.96 ▼3.56
Posts /wp-admin/edit.php2,739 ▼02.73 ▲0.0181.97 ▲17.5083.01 ▼0.00
Add New Post /wp-admin/post-new.php1,500 ▼18318.55 ▼0.19369.05 ▼36.14111.24 ▼2.78
Media Library /wp-admin/upload.php1,807 ▼05.00 ▼0.03152.33 ▼7.51113.78 ▼3.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 1× 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/custom-author-bio/author.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This is first screen shot), #2 (This is the second screen shot)
You can look at the official readme.txt

custom-author-bio/author.php 92% from 13 tests

The main PHP script in "Simple Scroll To Top Button" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-author-bio.php" instead of "author.php")

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
Good job! No executable or dangerous file extensions detected2,714 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS20315
JavaScript120014
PHP132814

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin