Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.92ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Term Fields
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.73 ▼2.01 |
Dashboard /wp-admin | 3.40 ▲0.09 | 60.28 ▲4.64 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.89 ▼1.40 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.88 ▼12.06 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.42 ▼0.19 |
Server storage [IO: ▲0.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
atf_core_version |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Term Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.33 | 1.67 ▼0.44 | 45.00 ▲2.03 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.04 | 93.89 ▼29.54 | 42.04 ▼14.91 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.99 ▼0.04 | 41.89 ▼5.52 | 35.50 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,404 ▼124 | 18.03 ▼4.85 | 654.77 ▲25.52 | 50.23 ▼3.24 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.29 ▲0.08 | 103.39 ▲0.89 | 41.35 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- atf_core_version
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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 items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-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/views/add-form-field.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-term-fields/inc/functions.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/advanced-term-fields/views/edit-form-field.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
6 plugin tags: taxonomy, term_meta, metadata, meta, term...
advanced-term-fields/advanced-term-fields.php 92% from 13 tests
The principal PHP file in "Advanced Term Fields" v. 0.1.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin497 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 235 | 991 | 469 |
Markdown | 1 | 20 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 7 | 16.67% |
▷ Public methods | 38 | 90.48% |
▷ Protected methods | 1 | 2.38% |
▷ Private methods | 3 | 7.14% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
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
PNG files should be compressed to save space and 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.png | 29.72KB | 11.98KB | ▼ 59.68% |