10% jam-taxonomy-image

Code Review | Jam Taxonomy Image

WordPress plugin Jam Taxonomy Image scored10%from 54 tests.

About plugin

  • Plugin page: jam-taxonomy-image
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2015
  • Latest release: Sep 27, 2015
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: mcjambi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,210 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Compile error in wp-content/plugins/jam-taxonomy-image/lib/taxonomy-metadata.php+69
    Cannot redeclare add_term_meta() (previously declared in wp-includes/taxonomy.php:1346)

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.51ms] Passed 4 tests

This is a short check of server-side resources used by Jam Taxonomy Image
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.58 ▼1.05
Dashboard /wp-admin3.31 ▼0.0444.37 ▼15.55
Posts /wp-admin/edit.php3.36 ▲0.0046.70 ▲2.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.00 ▼19.93
Media Library /wp-admin/upload.php3.23 ▲0.0036.08 ▲3.33

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Jam Taxonomy Image
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼0.981.83 ▲0.1439.32 ▼1.67
Dashboard /wp-admin2,203 ▲125.83 ▼0.0894.37 ▼5.1539.13 ▼4.38
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0439.60 ▲3.8334.09 ▲3.03
Add New Post /wp-admin/post-new.php1,533 ▲523.15 ▲4.91661.71 ▲62.2368.90 ▲19.76
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0194.35 ▼1.2143.15 ▲1.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/jam-taxonomy-image/jam-taxonomy-image.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jam-taxonomy-image/lib/widget.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

jam-taxonomy-image/jam-taxonomy-image.php 92% from 13 tests

The principal PHP file in "Jam Taxonomy Image" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 195 characters long)

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
No dangerous file extensions were detected303 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP365132303

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.00
▷ Minimum class complexity4.00
▷ Maximum class complexity24.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected