72% white-label-cms

Code Review | White Label CMS

WordPress plugin White Label CMS scored72%from 54 tests.

About plugin

  • Plugin page: white-label-cms
  • Plugin version: 2.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.4
  • WordPress version: 6.3.1
  • First release: Apr 4, 2010
  • Latest release: Nov 3, 2023
  • Number of updates: 92
  • Update frequency: every 54.0 days
  • Top authors: VideoUserManuals (95.65%)benjmay (5.43%)

Code review

54 tests

User reviews

105 reviews

Install metrics

200,000+ active /2,915,997 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.96ms] Passed 4 tests

Analyzing server-side resources used by White Label CMS
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0936.65 ▼2.32
Dashboard /wp-admin3.42 ▲0.1246.03 ▲1.46
Posts /wp-admin/edit.php3.53 ▲0.1846.89 ▼0.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1179.71 ▼10.41
Media Library /wp-admin/upload.php3.34 ▲0.1134.06 ▲0.96

Server storage [IO: ▲0.87MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 87 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
wlcms_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for White Label CMS
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.32 ▼0.081.63 ▲0.1442.28 ▼3.07
Dashboard /wp-admin2,219 ▲395.69 ▲0.0598.33 ▲4.8736.25 ▼8.54
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0439.56 ▲3.9135.15 ▲3.23
Add New Post /wp-admin/post-new.php1,535 ▲923.20 ▼0.20686.91 ▲15.2553.94 ▼4.77
Media Library /wp-admin/upload.php1,405 ▲84.17 ▲0.02101.38 ▲4.4944.52 ▲3.99
White Label CMS /wp-admin/wlcms-plugin.php260.420.0617.58

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/white-label-cms/view/admin/index.php
    • > /wp-content/plugins/white-label-cms/view/admin/parts/advert.php
    • > /wp-content/plugins/white-label-cms/assets/css/index.php
    • > /wp-content/plugins/white-label-cms/includes/index.php
    • > /wp-content/plugins/white-label-cms/assets/index.php
    • > /wp-content/plugins/white-label-cms/assets/images/index.php
    • > /wp-content/plugins/white-label-cms/view/admin/parts/index.php
    • > /wp-content/plugins/white-label-cms/view/index.php
    • > /wp-content/plugins/white-label-cms/assets/js/index.php
    • > /wp-content/plugins/white-label-cms/index.php
  • 44× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/white-label-cms/view/admin/parts/settings-custom-css-for-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function checked() in wp-content/plugins/white-label-cms/view/admin/parts/login-advanced.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/settings-custom-editor-stylesheet.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wlcms() in wp-content/plugins/white-label-cms/view/admin/parts/menus.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wlcms() in wp-content/plugins/white-label-cms/view/admin/parts/dashboard-default-panels.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/live-preview.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/login.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/wizard-step-1.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/menus-menus.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/white-label-cms/view/admin/parts/wizard-step-2.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/wlcms-plugin.php
    • > Network (severe)
    wp-admin/wlcms-plugin.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% 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 your attention:
  • Tags: Please reduce the number of tags, currently 19 tag instead of maximum 10
The official readme.txt might help

white-label-cms/wlcms-plugin.php 92% from 13 tests

"White Label CMS" version 2.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("white-label-cms.php" instead of "wlcms-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin5,686 lines of code in 69 files:
LanguageFilesBlank linesComment linesLines of code
PHP608952564,392
PO File12,0418,0321,286
JavaScript5035
CSS3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity21.26
▷ Minimum class complexity1.00
▷ Maximum class complexity108.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods196
▷ Static methods31.53%
▷ Public methods15277.55%
▷ Protected methods00.00%
▷ Private methods4422.45%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants675.00%
▷ Class constants225.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/wlcms-logo.png19.00KB5.81KB▼ 69.43%