Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼146.53ms] Passed 4 tests
A check of server-side resources used by Customizer Theme Resizer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 37.73 ▲0.59 |
Dashboard /wp-admin | 3.08 ▲0.03 | 43.70 ▼9.29 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 48.24 ▲0.81 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 102.01 ▼566.10 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 39.36 ▼11.33 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Customizer Theme Resizer: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲131 | 16.31 ▲0.61 | 10.74 ▲0.74 | 48.27 ▼6.70 |
Dashboard /wp-admin | 2,967 ▲30 | 5.93 ▼0.16 | 167.81 ▲5.41 | 129.26 ▲3.88 |
Posts /wp-admin/edit.php | 2,739 ▲3 | 2.72 ▲0.02 | 72.96 ▲0.92 | 99.40 ▲2.58 |
Add New Post /wp-admin/post-new.php | 1,683 ▼1,951 | 18.71 ▲0.40 | 397.36 ▼125.04 | 118.84 ▼1.88 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▼0.01 | 162.52 ▼14.52 | 134.18 ▼7.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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 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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/customizer-theme-resizer/plugin.php:20
- > PHP Fatal error
Uncaught Error: Class 'CustomizerThemeResizerInit' not found in wp-content/plugins/customizer-theme-resizer/lib/customizer-theme-resizer.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Resizer Ber) image missing
customizer-theme-resizer/plugin.php 85% from 13 tests
Analyzing the main PHP file in "Customizer Theme Resizer" version 0.7.5
You should first fix the following items:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("customizer-theme-resizer.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected196 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 7 | 11 | 107 |
JavaScript | 1 | 3 | 0 | 63 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.88KB | 12.07KB | ▼ 58.19% |