Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼312.43ms] Passed 4 tests
A check of server-side resources used by My Custom Theme Values
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 53.49 ▼1.26 |
Dashboard /wp-admin | 3.43 ▲0.02 | 32.49 ▲0.57 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 35.55 ▼3.15 |
Add New Post /wp-admin/post-new.php | 6.92 ▼0.07 | 90.76 ▼1,245.88 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 26.63 ▲3.74 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by My Custom Theme Values
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲61 | 15.79 ▲0.08 | 5.84 ▲0.13 | 1.97 ▼0.49 |
Dashboard /wp-admin | 2,911 ▲50 | 6.09 ▼0.07 | 116.80 ▼11.68 | 178.26 ▲20.71 |
Posts /wp-admin/edit.php | 2,705 ▲11 | 3.13 ▼0.11 | 62.61 ▼0.36 | 141.74 ▼3.46 |
Add New Post /wp-admin/post-new.php | 1,804 ▲143 | 22.26 ▲6.17 | 431.97 ▲30.29 | 192.25 ▲42.11 |
Media Library /wp-admin/upload.php | 1,718 ▲17 | 5.50 ▲0.05 | 124.73 ▼15.65 | 206.13 ▲22.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-custom-theme-values/custom-theme-values.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (61 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings page.), #2 (Post Shortcode and TinyMCE Button for Shortcode.)
- Requires at least: The plugin version is formatted incorrectly
my-custom-theme-values/custom-theme-values.php 85% from 13 tests
"My Custom Theme Values" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-custom-theme-values.php" instead of "custom-theme-values.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin114 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 15 | 92 |
JavaScript | 1 | 3 | 12 | 22 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 10.53KB | 4.93KB | ▼ 53.17% |
images/icon.png | 1.43KB | 0.62KB | ▼ 56.61% |
screenshot-1.png | 23.62KB | 10.25KB | ▼ 56.62% |