78% whitelabel-wp-setup

Code Review | Whitelabel WP Setup

WordPress plugin Whitelabel WP Setup scored78%from 54 tests.

About plugin

  • Plugin page: whitelabel-wp-setup
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Aug 15, 2019
  • Latest release: Apr 26, 2020
  • Number of updates: 8
  • Update frequency: every 32.0 days
  • Top authors: webempire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /895 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
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼7.25ms] Passed 4 tests

Server-side resources used by Whitelabel WP Setup
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0742.09 ▼3.00
Dashboard /wp-admin3.41 ▲0.1049.52 ▼3.89
Posts /wp-admin/edit.php3.53 ▲0.1654.16 ▲2.44
Add New Post /wp-admin/post-new.php6.01 ▲0.1286.56 ▼18.79
Media Library /wp-admin/upload.php3.33 ▲0.1034.99 ▼3.30
Whitelabel WP Setup /wp-admin/options-general.php?page=whitelabel-wp-content3.3039.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Whitelabel WP Setup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.37 ▲0.021.93 ▼0.0845.15 ▼1.85
Dashboard /wp-admin2,199 ▲255.53 ▼0.0786.82 ▼5.4437.45 ▼1.08
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0337.47 ▼3.3934.67 ▼4.30
Add New Post /wp-admin/post-new.php1,531 ▲523.03 ▼0.00670.17 ▼32.1254.81 ▲1.50
Media Library /wp-admin/upload.php1,404 ▲74.14 ▼0.05112.97 ▲11.9146.59 ▲0.08
Whitelabel WP Setup /wp-admin/options-general.php?page=whitelabel-wp-content1,3841.9133.5658.78

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=whitelabel-wp-content
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/whitelabel-wp-setup/whitelabel-wp-setup.php:15

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: whitelabel plugin, whitelabel theme, wordpress, whitelabel, branding

whitelabel-wp-setup/whitelabel-wp-setup.php 85% from 13 tests

The entry point to "Whitelabel WP Setup" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,112 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4169260591
CSS21112405
JavaScript23238116

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity30.33
▷ Minimum class complexity15.00
▷ Maximum class complexity54.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods22
▷ Static methods418.18%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
6 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/whitelabel-help-Version.png45.49KB16.44KB▼ 63.85%
assets/img/whitelabel-help-PluginURI.png46.50KB16.81KB▼ 63.85%
assets/img/whitelabel-help-Author.png48.20KB17.72KB▼ 63.23%
assets/img/whitelabel-help-AuthorURI.png48.20KB17.72KB▼ 63.23%
assets/img/whitelabel-help-Description.png46.57KB16.72KB▼ 64.10%