Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼3.61ms] Passed 4 tests
This is a short check of server-side resources used by Taxonomy Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.25 | 37.72 ▼4.76 |
Dashboard /wp-admin | 3.55 ▲0.25 | 47.44 ▼7.51 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 46.50 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 91.24 ▼2.17 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 36.37 ▲4.16 |
Taxonomy Images /wp-admin/options-general.php?page=taxonomy_image_plugin_settings | 3.44 | 32.74 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Taxonomy Images: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.14 ▼1.25 | 1.60 ▼0.47 | 39.16 ▼7.88 |
Dashboard /wp-admin | 2,210 ▲19 | 5.88 ▲1.01 | 100.42 ▼7.34 | 39.46 ▼5.39 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 36.26 ▲0.30 | 33.72 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,538 ▲19 | 23.25 ▲0.24 | 590.45 ▼69.48 | 53.05 ▼10.95 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.13 | 95.62 ▼4.66 | 41.37 ▼2.75 |
Taxonomy Images /wp-admin/options-general.php?page=taxonomy_image_plugin_settings | 789 | 2.03 | 24.20 | 26.36 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/taxonomy-images/legacy/includes/deprecated.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/taxonomy-images/legacy/includes/public-filters.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: image, taxonomy, category, tag, media...
taxonomy-images/taxonomy-images.php Passed 13 tests
The main file in "Taxonomy Images" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
Associate images from your media library to categories, tags and custom taxonomies.
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
No dangerous file extensions were detected3,163 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 1,104 | 2,064 | 2,162 |
JavaScript | 4 | 99 | 43 | 349 |
Markdown | 2 | 152 | 0 | 349 |
CSS | 3 | 35 | 2 | 173 |
PO File | 1 | 48 | 56 | 130 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 9.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 23 | 20.35% |
▷ Public methods | 75 | 66.37% |
▷ Protected methods | 3 | 2.65% |
▷ Private methods | 35 | 30.97% |
Functions | 48 | |
▷ Named functions | 48 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin/assets/images/default.png | 1.46KB | 0.52KB | ▼ 64.16% |
images/blank.png | 0.08KB | 0.08KB | ▼ 2.33% |
images/default.png | 1.46KB | 0.52KB | ▼ 64.16% |
plugin/assets/images/blank.png | 0.08KB | 0.08KB | ▼ 2.33% |