84% taxonomy-images

Code Review | Taxonomy Images

WordPress plugin Taxonomy Images scored84%from 54 tests.

About plugin

  • Plugin page: taxonomy-images
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.1
  • WordPress version: 6.3.1
  • First release: Feb 14, 2010
  • Latest release: Jun 20, 2019
  • Number of updates: 50
  • Update frequency: every 68.3 days
  • Top authors: husobj (52%)mfields (50%)

Code review

54 tests

User reviews

40 reviews

Install metrics

10,000+ active /195,126 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2537.72 ▼4.76
Dashboard /wp-admin3.55 ▲0.2547.44 ▼7.51
Posts /wp-admin/edit.php3.66 ▲0.3146.50 ▼0.01
Add New Post /wp-admin/post-new.php6.13 ▲0.2491.24 ▼2.17
Media Library /wp-admin/upload.php3.47 ▲0.2436.37 ▲4.16
Taxonomy Images /wp-admin/options-general.php?page=taxonomy_image_plugin_settings3.4432.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.14 ▼1.251.60 ▼0.4739.16 ▼7.88
Dashboard /wp-admin2,210 ▲195.88 ▲1.01100.42 ▼7.3439.46 ▼5.39
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0136.26 ▲0.3033.72 ▼2.04
Add New Post /wp-admin/post-new.php1,538 ▲1923.25 ▲0.24590.45 ▼69.4853.05 ▼10.95
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.1395.62 ▼4.6641.37 ▼2.75
Taxonomy Images /wp-admin/options-general.php?page=taxonomy_image_plugin_settings7892.0324.2026.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP221,1042,0642,162
JavaScript49943349
Markdown21520349
CSS3352173
PO File14856130

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 code0.33
Average class complexity9.39
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods113
▷ Static methods2320.35%
▷ Public methods7566.37%
▷ Protected methods32.65%
▷ Private methods3530.97%
Functions48
▷ Named functions48100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
FileSize - originalSize - compressedSavings
plugin/assets/images/default.png1.46KB0.52KB▼ 64.16%
images/blank.png0.08KB0.08KB▼ 2.33%
images/default.png1.46KB0.52KB▼ 64.16%
plugin/assets/images/blank.png0.08KB0.08KB▼ 2.33%