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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 36.65 ▼2.32 |
Dashboard /wp-admin | 3.42 ▲0.12 | 46.03 ▲1.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 46.89 ▼0.06 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.71 ▼10.41 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲65 | 14.32 ▼0.08 | 1.63 ▲0.14 | 42.28 ▼3.07 |
Dashboard /wp-admin | 2,219 ▲39 | 5.69 ▲0.05 | 98.33 ▲4.87 | 36.25 ▼8.54 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.02 ▲0.04 | 39.56 ▲3.91 | 35.15 ▲3.23 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 23.20 ▼0.20 | 686.91 ▲15.25 | 53.94 ▼4.77 |
Media Library /wp-admin/upload.php | 1,405 ▲8 | 4.17 ▲0.02 | 101.38 ▲4.49 | 44.52 ▲3.99 |
White Label CMS /wp-admin/wlcms-plugin.php | 26 | 0.42 | 0.06 | 17.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 895 | 256 | 4,392 |
PO File | 1 | 2,041 | 8,032 | 1,286 |
JavaScript | 5 | 0 | 3 | 5 |
CSS | 3 | 0 | 0 | 3 |
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 code | 0.41 |
Average class complexity | 21.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 19 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 196 | |
▷ Static methods | 3 | 1.53% |
▷ Public methods | 152 | 77.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 44 | 22.45% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 6 | 75.00% |
▷ Class constants | 2 | 25.00% |
▷ Public constants | 2 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wlcms-logo.png | 19.00KB | 5.81KB | ▼ 69.43% |