Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼144.98ms] Passed 4 tests
Server-side resources used by Advanced Term Fields: Colors
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 25.61 ▲7.75 |
Dashboard /wp-admin | 3.06 ▼0.00 | 36.25 ▼5.01 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 38.11 ▲3.24 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 72.40 ▼577.41 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 25.49 ▼0.73 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Term Fields: Colors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,691 ▲90 | 16.02 ▲0.00 | 5.56 ▼0.22 | 73.53 ▲2.91 |
Dashboard /wp-admin | 2,933 ▲34 | 6.09 ▼0.10 | 112.79 ▼16.98 | 171.88 ▲0.76 |
Posts /wp-admin/edit.php | 2,740 ▼0 | 3.24 ▲0.01 | 63.86 ▲0.42 | 138.30 ▲0.42 |
Add New Post /wp-admin/post-new.php | 3,743 ▲52 | 18.82 ▲3.60 | 417.17 ▼22.39 | 164.28 ▲3.36 |
Media Library /wp-admin/upload.php | 1,752 ▼0 | 5.53 ▼0.03 | 138.48 ▼14.05 | 185.23 ▼1.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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 everything seems fine, this is not 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
Please fix the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields-colors/views/inner-quick-form-field.php:15
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-term-fields-colors/views/inner-edit-form-field.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields-colors/views/inner-add-form-field.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: colors, metadata, taxonomy, term_meta, term...
advanced-term-fields-colors/advanced-term-fields-colors.php 92% from 13 tests
The main PHP script in "Advanced Term Fields: Colors" version 0.1.2 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin276 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 100 | 392 | 211 |
JavaScript | 1 | 14 | 26 | 31 |
Markdown | 1 | 22 | 0 | 30 |
CSS | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 2 | |
▷ Global constants | 2 | 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
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 |
assets/screenshot-1.png | 29.72KB | 11.98KB | ▼ 59.68% |