10% back-end-instructions

Code Review | Back End Instructions

WordPress plugin Back End Instructions scored10%from 54 tests.

About plugin

  • Plugin page: back-end-instruct...
  • Plugin version: 3.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.9
  • WordPress version: 6.3.1
  • First release: Feb 14, 2011
  • Latest release: Apr 17, 2014
  • Number of updates: 33
  • Update frequency: every 35.1 days
  • Top authors: doodlebee (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

70+ active /10,817 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/back-end-instructions/instructions.php+104
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.77MB] [CPU: ▼32.37ms] Passed 4 tests

Server-side resources used by Back End Instructions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1038.17 ▼11.36
Dashboard /wp-admin3.18 ▼0.1634.28 ▼33.97
Posts /wp-admin/edit.php3.19 ▼0.1731.64 ▼16.42
Add New Post /wp-admin/post-new.php3.18 ▼2.7030.71 ▼67.74
Media Library /wp-admin/upload.php3.19 ▼0.0429.80 ▼9.71
Back End Instructions /wp-admin/options-general.php?page=bei3.3437.54

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Back End Instructions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲3714.35 ▼0.401.88 ▼0.0842.99 ▲2.08
Dashboard /wp-admin2,226 ▲495.63 ▼0.0382.17 ▼10.8939.82 ▼6.78
Posts /wp-admin/edit.php2,131 ▲312.13 ▲0.1841.27 ▲3.0137.87 ▲2.24
Add New Post /wp-admin/post-new.php1,552 ▲2623.15 ▲0.01604.06 ▼56.9665.51 ▲18.03
Media Library /wp-admin/upload.php1,434 ▲344.22 ▲0.0594.12 ▼5.9944.17 ▼2.25
Back End Instructions /wp-admin/options-general.php?page=bei9372.0423.6328.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • _bei_options
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/back-end-instructions/instructions.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/back-end-instructions/mytheme/single-instructions.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/back-end-instructions/mytheme/archive-instructions.php:22

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Example of the Back End Instructions page.), #2 (A view of the edit.php page (where an instruction will show) with the instruction expanded under the "Help" tab.), #3 (Close-up view of the ability to add an instruction to multiple pages on the back end.)
Please take inspiration from this readme.txt

back-end-instructions/instructions.php 77% from 13 tests

Analyzing the main PHP file in "Back End Instructions" version 3.1.1
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("/bei_languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("back-end-instructions.php" instead of "instructions.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected988 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3242271688
CSS35826300

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 files were detected