Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/site-layout-customizer/sitelayoutcustomizer.php+123
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.53MB] [CPU: ▼353.80ms] Passed 4 tests
Analyzing server-side resources used by Site Layout Customizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼1.68 | 9.55 ▼56.92 |
Dashboard /wp-admin | 1.86 ▼1.55 | 8.89 ▼30.66 |
Posts /wp-admin/edit.php | 1.86 ▼1.78 | 8.40 ▼53.05 |
Add New Post /wp-admin/post-new.php | 1.86 ▼5.11 | 8.71 ▼1,274.56 |
Media Library /wp-admin/upload.php | 1.86 ▼1.44 | 9.17 ▼13.26 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Site Layout Customizer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,788 ▲46 | 15.73 ▲0.41 | 6.53 ▲0.26 | 2.15 ▼0.23 |
Dashboard /wp-admin | 2,914 ▲57 | 6.15 ▼0.12 | 121.75 ▼1.54 | 159.02 ▼21.17 |
Posts /wp-admin/edit.php | 2,713 ▲22 | 3.24 ▼0.01 | 89.29 ▲24.85 | 143.62 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,726 ▲65 | 21.32 ▲5.09 | 474.24 ▲65.61 | 182.81 ▼18.31 |
Media Library /wp-admin/upload.php | 1,720 ▲28 | 5.46 ▼0.06 | 144.47 ▼17.04 | 193.97 ▼35.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5768
wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the slc-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/site-layout-customizer/sitelayoutcustomizer.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 20 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (example), #2 (example)
- Donate link: Please fix this invalid URI: ""
site-layout-customizer/sitelayoutcustomizer.php 92% from 13 tests
The entry point to "Site Layout Customizer" version 1.8 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("site-layout-customizer.php" instead of "sitelayoutcustomizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin1,638 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 382 | 41 | 1,203 |
CSS | 1 | 97 | 17 | 435 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 76 | |
▷ Named functions | 76 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
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 |
screenshot-4.png | 16.43KB | 5.41KB | ▼ 67.07% |