79% backend-designer

Code Review | Backend Designer

WordPress plugin Backend Designer scored79%from 54 tests.

About plugin

  • Plugin page: backend-designer
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Nov 27, 2015
  • Latest release: May 30, 2022
  • Number of updates: 23
  • Update frequency: every 103.3 days
  • Top authors: Bloodspencer (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /8,033 total downloads

Benchmarks

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.11MB] [CPU: ▼14.48ms] Passed 4 tests

A check of server-side resources used by Backend Designer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.50 ▼2.49
Dashboard /wp-admin3.24 ▼0.0731.20 ▼14.89
Posts /wp-admin/edit.php3.33 ▼0.0332.97 ▼13.09
Add New Post /wp-admin/post-new.php5.52 ▼0.3770.96 ▼27.45
Media Library /wp-admin/upload.php3.27 ▲0.0330.42 ▼2.48
Backend Designer /wp-admin/themes.php?page=backend_designer3.2628.74

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Backend Designer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲3613.20 ▼1.351.69 ▼0.1941.49 ▲2.42
Dashboard /wp-admin2,210 ▲225.91 ▲0.00105.84 ▲0.7839.25 ▼3.14
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0539.18 ▼1.5134.67 ▲0.59
Add New Post /wp-admin/post-new.php1,536 ▲1123.28 ▲0.06644.10 ▼24.6050.13 ▼8.73
Media Library /wp-admin/upload.php1,395 ▲74.19 ▼0.0294.79 ▼32.3240.79 ▼3.03
Backend Designer /wp-admin/themes.php?page=backend_designer1,6733.6459.0176.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 10 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=backend_designer
    • > Notice in wp-content/plugins/backend-designer/admin/options.php+324
    Trying to access array offset on value of type bool

SRP 50% 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
Almost there! Just fix the following items
  • 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/backend-designer/output/styles.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/backend-designer/admin/options.php:7

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: admin theme, backend colors, customize admin, backend designer, customize admin panel...

backend-designer/backend-designer.php Passed 13 tests

The primary PHP file in "Backend Designer" version 1.3 is used by WordPress to initiate all plugin functionality
120 characters long description:
Create your own design for the Wordpress Backend and customize the Login screen with your logo and awesome color styles.

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
There were no executable files found in this plugin2,867 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript13211941,802
PHP3205151514
CSS24128465
PO File1253786

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.23
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%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/logo_bd.png21.60KB2.75KB▼ 87.26%