89% admin-back-button

Code Review | Back Button

WordPress plugin Back Button scored89%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: 6.3.1
  • 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

30+ active /1,261 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

This is a short check of server-side resources used by Back Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.56 ▲5.25
Dashboard /wp-admin3.31 ▼0.0447.69 ▼15.06
Posts /wp-admin/edit.php3.36 ▲0.0044.49 ▼2.57
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.82 ▼4.79
Media Library /wp-admin/upload.php3.23 ▲0.0034.07 ▼1.28

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Back Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.25 ▼0.891.66 ▼0.7942.63 ▼3.03
Dashboard /wp-admin2,210 ▲215.86 ▲0.9895.24 ▼22.3137.56 ▼2.91
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0336.94 ▲2.0932.36 ▲1.61
Add New Post /wp-admin/post-new.php1,530 ▼318.21 ▼4.91585.67 ▼91.0163.74 ▼3.83
Media Library /wp-admin/upload.php1,398 ▲74.21 ▲0.0594.11 ▼10.1441.39 ▼8.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === admin-back-button === )
  • Contributors: Plugin contributors not specified
  • Donate link: Please fix this invalid url: "-"
You can take inspiration from this readme.txt

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

The main PHP file in "Back Button" ver. 0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be 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 not allowed as they can serve as attack vectors
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin