99% admin-back-button

Code Review | Back Button

WordPress plugin Back Button scored 99% from 54 tests.

About plugin

  • Plugin page: admin-back-button
  • Plugin version: 0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4
  • WordPress version: 5.9.2
  • First release: Aug 4, 2016
  • Latest release: Aug 4, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: gnnpls (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,051 total downloads


Plugin footprint Passed 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.02MB] [CPU: ▼299.56ms] Passed 4 tests

Analyzing server-side resources used by Back Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0151.61 ▲4.03
Dashboard /wp-admin3.41 ▲0.0133.39 ▼1.36
Posts /wp-admin/edit.php3.64 ▲0.0142.41 ▲2.50
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.33 ▼1,199.29
Media Library /wp-admin/upload.php3.30 ▲0.0023.94 ▼0.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Back Button
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲7416.29 ▲0.386.27 ▲0.583.25 ▲0.54
Dashboard /wp-admin2,925 ▲386.47 ▼0.06130.60 ▼8.65156.58 ▼9.66
Posts /wp-admin/edit.php2,695 ▲13.44 ▲0.0166.00 ▲1.83141.80 ▼2.53
Add New Post /wp-admin/post-new.php1,668 ▲716.37 ▼6.74447.25 ▲20.44157.51 ▼2.89
Media Library /wp-admin/upload.php1,705 ▲75.76 ▲0.03125.99 ▼8.50189.10 ▲0.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests Passed 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 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === admin-back-button === )
  • Donate link: Invalid URI ("")
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

admin-back-button/babu-back-button.php 92% from 13 tests

The primary PHP file in "Back Button" version 0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("admin-back-button.php" instead of "babu-back-button.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin213 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PO File2121466

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ 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