83% backend-startpage-customizer

Code Review | Backend Startpage Customizer

WordPress plugin Backend Startpage Customizer scored83%from 54 tests.

About plugin

  • Plugin page: backend-startpage...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Oct 8, 2014
  • Number of updates: 20
  • Update frequency: every 34.7 days
  • Top authors: f.staude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,759 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.89ms] Passed 4 tests

An overview of server-side resources used by Backend Startpage Customizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.15 ▼1.98
Dashboard /wp-admin3.35 ▲0.0449.75 ▼3.35
Posts /wp-admin/edit.php3.40 ▲0.0355.96 ▲5.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0387.03 ▼11.27
Media Library /wp-admin/upload.php3.27 ▲0.0351.60 ▲15.92

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Backend Startpage Customizer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▲0.021.71 ▲0.0644.90 ▲3.36
Dashboard /wp-admin2,198 ▲185.64 ▼0.0291.25 ▼3.3837.05 ▼8.04
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0238.69 ▼1.1732.64 ▼5.86
Add New Post /wp-admin/post-new.php1,545 ▼523.18 ▼0.20664.98 ▼66.8159.44 ▲0.28
Media Library /wp-admin/upload.php1,403 ▲34.22 ▲0.0297.26 ▼12.9044.24 ▼1.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/backend-startpage-customizer/backend-startpage-customizer.php:42

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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:
  • Screenshots: Screenshot #1 (The user profile page with startpage pulldown.) image missing
You can look at the official readme.txt

backend-startpage-customizer/backend-startpage-customizer.php 85% from 13 tests

This is the main PHP file of "Backend Startpage Customizer" version 0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Domain Path: The domain path must begin with a forward slash character ("/languages")

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
Everything looks great! No dangerous files found in this plugin182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22495102
PO File2204880

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin