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.19MB] [CPU: ▼1.14ms] Passed 4 tests
An overview of server-side resources used by Advanced Term Images
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 38.23 ▼0.86 |
Dashboard /wp-admin | 3.49 ▲0.19 | 48.70 ▼6.23 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.72 ▲5.03 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 90.85 ▼2.45 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.69 ▲4.98 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
atf__thumbnail_id_key_updated |
atf__thumbnail_id_version |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Term Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.73 ▲0.00 | 1.71 ▲0.04 | 43.33 ▲5.21 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▲0.02 | 85.79 ▼2.75 | 37.03 ▼0.36 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.96 ▼0.07 | 36.25 ▲1.09 | 34.41 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,531 ▼5 | 23.16 ▲0.14 | 628.66 ▼5.68 | 49.54 ▼0.14 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.03 | 100.82 ▼8.01 | 45.91 ▼1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > 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: 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: featured-images, category-images, taxonomy, image, metadata...
advanced-term-fields-featured-images/advanced-term-fields-images.php 85% from 13 tests
This is the main PHP file of "Advanced Term Images" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main 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 a short overview of programming languages used in this plugin, detecting executable files
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 short review of cyclomatic complexity and code structure
All good! No complexity issues found
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
All PNG images should be compressed to minimize bandwidth usage for end users
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/icon-128x128.png | 3.08KB | 1.93KB | ▼ 37.24% |
assets/screenshot-1.png | 29.72KB | 11.98KB | ▼ 59.68% |
assets/icon-256x256.png | 6.96KB | 3.25KB | ▼ 53.30% |