78% backdrop

Code Review | Backdrop

WordPress plugin Backdrop scored 78% from 54 tests.

About plugin

  • Plugin page: backdrop
  • Plugin version: 2.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Oct 29, 2012
  • Latest release: Jan 2, 2018
  • Number of updates: 33
  • Update frequency: every 67.6 days
  • Top authors: Phillip.Gooch (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active / 6,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Backdrop
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.80 ▼0.05
Dashboard /wp-admin3.32 ▲0.0144.92 ▼2.29
Posts /wp-admin/edit.php3.37 ▲0.0143.53 ▼7.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.53 ▼14.78
Media Library /wp-admin/upload.php3.24 ▲0.0133.72 ▲0.82
Backdrop /wp-admin/admin.php?page=backdrop-help3.2932.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Backdrop
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲9813.65 ▼0.735.28 ▲3.2941.54 ▼8.31
Dashboard /wp-admin2,206 ▲185.83 ▼0.0796.28 ▼13.9737.57 ▼2.40
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0334.17 ▼6.5833.99 ▼0.86
Add New Post /wp-admin/post-new.php1,533 ▲1923.45 ▲5.72581.53 ▼54.2049.00 ▲1.34
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0194.37 ▼11.9940.49 ▼6.74
Backdrop /wp-admin/admin.php?page=backdrop-help1,1242.0331.2533.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

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

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/backdrop/help.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backdrop/backdrop.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/backdrop/help.php:272

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)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (The backdrop WordPress customizer panel.) image not found
Please take inspiration from this readme.txt

backdrop/backdrop.php Passed 13 tests

The principal PHP file in "Backdrop" v. 2.2.5 is loaded by WordPress automatically on each request
91 characters long description:
Backdrop is an improved site background customizer allowing for all manner of fancy things.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,173 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP31471851,173

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity2.86
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods13
▷ Static methods17.69%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin