Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼289.46ms] Passed 4 tests
Analyzing server-side resources used by Advanced Term Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.26 | 54.85 ▲2.78 |
Dashboard /wp-admin | 3.60 ▲0.19 | 33.46 ▲1.10 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 38.32 ▲2.85 |
Add New Post /wp-admin/post-new.php | 7.06 ▲0.09 | 95.56 ▼1,163.90 |
Media Library /wp-admin/upload.php | 3.48 ▲0.19 | 26.21 ▲2.19 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 2 new options
New WordPress options |
---|
atf__thumbnail_id_version |
atf__thumbnail_id_key_updated |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Term Images
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲9 | 15.83 ▲0.03 | 5.68 ▼0.12 | 2.82 ▼0.13 |
Dashboard /wp-admin | 2,895 ▲34 | 6.00 ▼0.28 | 124.92 ▼9.69 | 164.97 ▲2.62 |
Posts /wp-admin/edit.php | 2,688 ▼3 | 3.24 ▲0.01 | 63.57 ▼0.89 | 143.76 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.52 ▲5.87 | 431.62 ▼40.31 | 157.19 ▲1.71 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.50 ▼0.00 | 137.23 ▼6.72 | 191.12 ▲4.97 |
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
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
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
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields-featured-images/views/inner-add-form-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields-featured-images/lib/adv-term-fields/views/add-form-field.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-term-fields-featured-images/lib/adv-term-fields/views/quick-form-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields-featured-images/lib/adv-term-fields/views/edit-form-field.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-term-fields-featured-images/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-featured-images/views/inner-quick-form-field.php:17
- > 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 93% 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
9 plugin tags: term-meta, images, meta, taxonomy, image...
advanced-term-fields-featured-images/advanced-term-fields-images.php 85% from 13 tests
The primary PHP file in "Advanced Term Images" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-term-fields-featured-images.php" instead of "advanced-term-fields-images.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
There were no executable files found in this plugin876 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 324 | 1,324 | 700 |
JavaScript | 1 | 49 | 65 | 133 |
Markdown | 1 | 23 | 0 | 33 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 20.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 6 | 11.11% |
▷ Public methods | 50 | 92.59% |
▷ Protected methods | 1 | 1.85% |
▷ Private methods | 3 | 5.56% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 29.72KB | 11.98KB | ▼ 59.68% |
assets/icon-256x256.png | 6.96KB | 3.25KB | ▼ 53.30% |
assets/icon-128x128.png | 3.08KB | 1.93KB | ▼ 37.24% |