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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 42.09 ▼3.00 |
Dashboard /wp-admin | 3.41 ▲0.10 | 49.52 ▼3.89 |
Posts /wp-admin/edit.php | 3.53 ▲0.16 | 54.16 ▲2.44 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 86.56 ▼18.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.99 ▼3.30 |
Whitelabel WP Setup /wp-admin/options-general.php?page=whitelabel-wp-content | 3.30 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.37 ▲0.02 | 1.93 ▼0.08 | 45.15 ▼1.85 |
Dashboard /wp-admin | 2,199 ▲25 | 5.53 ▼0.07 | 86.82 ▼5.44 | 37.45 ▼1.08 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.99 ▲0.03 | 37.47 ▼3.39 | 34.67 ▼4.30 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.03 ▼0.00 | 670.17 ▼32.12 | 54.81 ▲1.50 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.14 ▼0.05 | 112.97 ▲11.91 | 46.59 ▲0.08 |
Whitelabel WP Setup /wp-admin/options-general.php?page=whitelabel-wp-content | 1,384 | 1.91 | 33.56 | 58.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 169 | 260 | 591 |
CSS | 2 | 11 | 12 | 405 |
JavaScript | 2 | 32 | 38 | 116 |
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 code | 0.42 |
Average class complexity | 30.33 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 22 | |
▷ Static methods | 4 | 18.18% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/whitelabel-help-Version.png | 45.49KB | 16.44KB | ▼ 63.85% |
assets/img/whitelabel-help-PluginURI.png | 46.50KB | 16.81KB | ▼ 63.85% |
assets/img/whitelabel-help-Author.png | 48.20KB | 17.72KB | ▼ 63.23% |
assets/img/whitelabel-help-AuthorURI.png | 48.20KB | 17.72KB | ▼ 63.23% |
assets/img/whitelabel-help-Description.png | 46.57KB | 16.72KB | ▼ 64.10% |