84% easy-back-to-top

Code Review | Easy Back to Top

WordPress plugin Easy Back to Top scored 84% from 54 tests.

About plugin

  • Plugin page: easy-back-to-top
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6
  • WordPress version: 6.3.1
  • First release: Sep 8, 2016
  • Latest release: Sep 22, 2016
  • Number of updates: 10
  • Update frequency: every 11.2 days
  • Top authors: infodesignbd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.55ms] Passed 4 tests

This is a short check of server-side resources used by Easy Back to Top
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.79 ▼7.83
Dashboard /wp-admin3.32 ▲0.0149.61 ▲0.79
Posts /wp-admin/edit.php3.37 ▲0.0144.44 ▼3.99
Add New Post /wp-admin/post-new.php5.91 ▲0.0386.77 ▼5.50
Media Library /wp-admin/upload.php3.24 ▲0.0132.63 ▼0.86
Easy Back to Top /wp-admin/options-general.php?page=easy-back-top-settings3.2127.68

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Back to Top
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,937 ▲20213.90 ▼0.355.30 ▲3.5136.88 ▼7.30
Dashboard /wp-admin2,229 ▲385.09 ▲0.21111.45 ▼3.4942.81 ▼5.84
Posts /wp-admin/edit.php2,114 ▲252.32 ▲0.2835.47 ▲0.0830.02 ▼5.64
Add New Post /wp-admin/post-new.php1,531 ▲1123.29 ▼0.02647.41 ▼9.4129.34 ▼22.97
Media Library /wp-admin/upload.php1,408 ▲264.41 ▲0.1498.18 ▼1.1039.72 ▼5.68
Easy Back to Top /wp-admin/options-general.php?page=easy-back-top-settings1,3482.6562.5828.12

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-back-to-top/easy-back-to-top.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/easy-back-to-top/easy-back-to-top.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

easy-back-to-top/easy-back-to-top.php Passed 13 tests

Analyzing the main PHP file in "Easy Back to Top" version 1.0
90 characters long description:
A simple wordpress back to top scroll plugin. It's built by css3 and simple jquery script.

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 plugin138 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13420135
JavaScript1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected