94% wp-multiple-taxonomy-images

Code Review | WP Multiple Taxonomy Images

WordPress plugin WP Multiple Taxonomy Images scored 94% from 54 tests.

About plugin

  • Plugin page: wp-multiple-taxon...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.5.3
  • WordPress version: 5.9.2
  • First release: Aug 9, 2016
  • Latest release: Aug 16, 2016
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: Otto Bibartiu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 2,001 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.12MB] [CPU: ▼282.60ms] Passed 4 tests

An overview of server-side resources used by WP Multiple Taxonomy Images
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1255.95 ▲5.83
Dashboard /wp-admin3.57 ▲0.1635.72 ▲3.39
Posts /wp-admin/edit.php3.79 ▲0.1540.70 ▲2.79
Add New Post /wp-admin/post-new.php7.04 ▲0.07101.64 ▼1,137.31
Media Library /wp-admin/upload.php3.45 ▲0.1527.60 ▲0.74
WP Multiple Taxonomy Images /wp-admin/options-general.php?page=wmti-setting-admin3.4225.92

Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for WP Multiple Taxonomy Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲6615.96 ▼0.125.76 ▲0.232.24 ▼1.36
Dashboard /wp-admin2,897 ▲396.02 ▼0.16119.87 ▼12.10156.08 ▲1.26
Posts /wp-admin/edit.php2,693 ▲53.24 ▼0.0162.37 ▼0.60137.00 ▼2.39
Add New Post /wp-admin/post-new.php1,763 ▲9522.48 ▲4.38410.45 ▲2.97147.53 ▼10.71
Media Library /wp-admin/upload.php1,700 ▲55.49 ▼0.03145.18 ▲6.14182.46 ▼3.17
WP Multiple Taxonomy Images /wp-admin/options-general.php?page=wmti-setting-admin1,0402.4152.93128.40

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/wp-multiple-taxonomy-images/wp-multiple-taxonomy-images.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (22 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-multiple-taxonomy-images/wp-multiple-taxonomy-images.php 92% from 13 tests

"WP Multiple Taxonomy Images" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • 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 a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin411 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15567347
JavaScript111159
CSS1005

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.75
▷ Minimum class complexity4.00
▷ Maximum class complexity26.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin