90% wp-white-label

Code Review | WP White Label

WordPress plugin WP White Label scored90%from 54 tests.

About plugin

  • Plugin page: wp-white-label
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2
  • WordPress version: 6.3.1
  • First release: May 16, 2019
  • Latest release: May 17, 2019
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: longvietweb (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /1,469 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.27MB] [CPU: ▼7.21ms] Passed 4 tests

A check of server-side resources used by WP White Label
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1239.67 ▲0.85
Dashboard /wp-admin3.62 ▲0.3248.30 ▼2.45
Posts /wp-admin/edit.php3.73 ▲0.3851.89 ▲10.92
Add New Post /wp-admin/post-new.php6.22 ▲0.3497.27 ▼9.72
Media Library /wp-admin/upload.php3.54 ▲0.3136.86 ▼17.53
WP Hidden Plugin /wp-admin/admin.php?page=wpwl-hidden-plugin3.5133.83
WP White Label /wp-admin/admin.php?page=wp-white-label3.6045.79

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP White Label
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲10213.49 ▼1.091.59 ▼0.2642.39 ▼2.85
Dashboard /wp-admin2,257 ▲665.14 ▲0.22114.93 ▲13.1849.85 ▲12.65
Posts /wp-admin/edit.php2,142 ▲502.31 ▲0.1941.59 ▲1.4033.89 ▲1.07
Add New Post /wp-admin/post-new.php1,561 ▲4718.91 ▲1.41626.59 ▲9.3834.28 ▼18.89
Media Library /wp-admin/upload.php1,430 ▲454.39 ▲0.2098.20 ▼6.4039.62 ▼3.94
WP Hidden Plugin /wp-admin/admin.php?page=wpwl-hidden-plugin8861.9533.4427.35
WP White Label /wp-admin/admin.php?page=wp-white-label3,0769.46243.1337.89

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

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

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: custom dashboard, white label, branding, custom admin, hidden plugin

wp-white-label/wp-white-label.php Passed 13 tests

"WP White Label" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
WP White Label allows your agency to customise WP branding, admin area, dashboard, and login logo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,260 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP996731,064
PO File185117194
CSS1001
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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 complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin