10% back-and-forward-button

Code Review | Back and Forward Button

WordPress plugin Back and Forward Button scored10%from 54 tests.

About plugin

  • Plugin page: back-and-forward-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2017
  • Latest release: May 8, 2023
  • Number of updates: 73
  • Update frequency: every 31.2 days
  • Top authors: tawhidurrahmandear (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /6,009 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/back-and-forward-button/back-and-forward-button.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; tawhidurrahmandearthirtyWidget has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.65ms] Passed 4 tests

An overview of server-side resources used by Back and Forward Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.59 ▼39.36
Dashboard /wp-admin2.08 ▼1.236.29 ▼42.70
Posts /wp-admin/edit.php2.08 ▼1.288.59 ▼39.12
Add New Post /wp-admin/post-new.php2.08 ▼3.815.68 ▼89.41
Media Library /wp-admin/upload.php2.08 ▼1.154.35 ▼29.72

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_tawhidurrahmandearthirtywidget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Back and Forward Button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.051.87 ▼0.2043.34 ▼0.35
Dashboard /wp-admin2,203 ▲155.80 ▲0.9394.22 ▼22.3139.85 ▼5.23
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.1039.40 ▲4.0335.70 ▼1.49
Add New Post /wp-admin/post-new.php1,533 ▲1223.42 ▲0.19666.45 ▼20.5952.76 ▼4.39
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0691.53 ▼8.1540.65 ▼7.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/back-and-forward-button/back-and-forward-button.php+22
    Methods with the same name as their class will not be constructors in a future version of PHP; tawhidurrahmandearthirtyWidget has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_tawhidurrahmandearthirtywidget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: browsing, pagination, paging, paginate, navigation

back-and-forward-button/back-and-forward-button.php 92% from 13 tests

"Back and Forward Button" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 244 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1161141

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin