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.05MB] [CPU: ▼150.32ms] Passed 4 tests
Server-side resources used by Custom Field Variables
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 32.64 ▼1.09 |
Dashboard /wp-admin | 3.11 ▲0.06 | 47.18 ▼5.10 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 44.61 ▼6.00 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 98.93 ▼584.58 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 32.83 ▼5.59 |
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: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Custom Field Variables
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,688 ▲92 | 15.92 ▲0.59 | 10.35 ▼2.00 | 44.18 ▼9.82 |
Dashboard /wp-admin | 2,979 ▲42 | 5.94 ▼0.00 | 166.91 ▲3.40 | 108.38 ▼1.85 |
Posts /wp-admin/edit.php | 2,748 ▲9 | 2.73 ▲0.00 | 76.69 ▲4.73 | 88.90 ▼11.61 |
Add New Post /wp-admin/post-new.php | 1,692 ▲9 | 18.33 ▲2.21 | 399.54 ▼25.32 | 116.27 ▲0.70 |
Media Library /wp-admin/upload.php | 1,816 ▲9 | 5.04 ▼0.01 | 174.65 ▲16.26 | 122.64 ▲1.81 |
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 Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
3 plugin tags: custom-fields, meta, tinymce
custom-field-variables/cw-custom-field-variables.php 77% from 13 tests
The main PHP script in "Custom Field Variables" version 1.0.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("custom-field-variables.php" instead of "cw-custom-field-variables.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin273 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 119 | 449 | 209 |
JavaScript | 1 | 4 | 0 | 59 |
CSS | 1 | 1 | 4 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin