77% image-taxonomify-for-learndash

Code Review | Image Taxonomify for LearnDash

WordPress plugin Image Taxonomify for LearnDash scored77%from 54 tests.

About plugin

  • Plugin page: image-taxonomify-...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Jun 30, 2021
  • Latest release: Jul 13, 2021
  • Number of updates: 10
  • Update frequency: every 1.3 days
  • Top authors: maurolopes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /590 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.31ms] Passed 4 tests

Server-side resources used by Image Taxonomify for LearnDash
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.58 ▼0.29
Dashboard /wp-admin3.31 ▲0.0045.62 ▼2.83
Posts /wp-admin/edit.php3.36 ▲0.0045.67 ▼5.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.16 ▼8.23
Media Library /wp-admin/upload.php3.23 ▲0.0038.65 ▲4.19
Image Taxonomify /wp-admin/admin.php?page=learndash-image-taxonomify3.0023.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Image Taxonomify for LearnDash: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.28 ▼1.271.61 ▼0.7442.04 ▼4.95
Dashboard /wp-admin2,206 ▲215.86 ▲0.9598.63 ▼12.5740.29 ▼6.71
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0539.78 ▼1.6033.96 ▼0.89
Add New Post /wp-admin/post-new.php1,533 ▲1923.30 ▲5.78631.54 ▼67.0547.44 ▼5.29
Media Library /wp-admin/upload.php1,385 ▼04.31 ▼0.0198.77 ▼6.3041.53 ▼3.71
Image Taxonomify /wp-admin/admin.php?page=learndash-image-taxonomify280.440.103.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-taxonomify-for-learndash/includes/functions.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-taxonomify-for-learndash/includes/custom-taxonomy.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-taxonomify-for-learndash/admin/trit-settings.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/admin.php?page=learndash-image-taxonomify
    • > Network (severe)
    wp-admin/admin.php?page=learndash-image-taxonomify - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention: The official readme.txt might help

image-taxonomify-for-learndash/learndash-image-taxonomify.php 69% from 13 tests

"Image Taxonomify for LearnDash" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • 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 ("image-taxonomify-for-learndash.php" instead of "learndash-image-taxonomify.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected617 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP46626399
CSS2262218

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin