94% easy-taxonomy-images

Code Review | Easy Taxonomy Images

WordPress plugin Easy Taxonomy Images scored 94% from 54 tests.

About plugin

  • Plugin page: easy-taxonomy-images
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 5.8.1
  • First release: Nov 25, 2015
  • Latest release: Dec 8, 2015
  • Number of updates: 5
  • Update frequency: every 2.8 days
  • Top authors: wpdevstudio (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,563 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼137.32ms] Passed 4 tests

An overview of server-side resources used by Easy Taxonomy Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.0732.21 ▼4.98
Dashboard /wp-admin3.27 ▲0.2254.79 ▲11.43
Posts /wp-admin/edit.php3.32 ▲0.2253.77 ▲9.10
Add New Post /wp-admin/post-new.php5.55 ▲0.1190.59 ▼563.06
Media Library /wp-admin/upload.php3.13 ▲0.1343.83 ▲9.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Easy Taxonomy Images
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,899 ▲30317.42 ▲1.979.11 ▼1.6146.36 ▲2.08
Dashboard /wp-admin3,187 ▲2567.92 ▲2.00170.55 ▲19.45109.21 ▲2.13
Posts /wp-admin/edit.php2,988 ▲2494.29 ▲1.5885.39 ▲18.97102.68 ▲10.49
Add New Post /wp-admin/post-new.php1,703 ▲2018.70 ▼0.03377.88 ▼89.69129.42 ▲16.93
Media Library /wp-admin/upload.php1,834 ▲274.82 ▼0.27135.59 ▼20.75121.61 ▲10.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-taxonomy-images/lib/admin-page.php:2

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)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can take inspiration from this readme.txt

easy-taxonomy-images/easy-taxonomy-images.php Passed 13 tests

The main file in "Easy Taxonomy Images" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Have featured and cover images for tags, categories and custom taxonomies

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected586 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3107148437
CSS110084
JavaScript17465

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods28
▷ Static methods13.57%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/css/csscheckbox.png0.59KB0.38KB▼ 35.80%