90% attachment-taxonomies

Code Review | Attachment Taxonomies

WordPress plugin Attachment Taxonomies scored90%from 54 tests.

About plugin

  • Plugin page: attachment-taxono...
  • Plugin version: 1.2.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.4
  • WordPress version: 6.3.1
  • First release: Jul 6, 2016
  • Latest release: Nov 5, 2023
  • Number of updates: 15
  • Update frequency: every 178.9 days
  • Top authors: flixos90 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /17,062 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▲1.44ms] Passed 4 tests

A check of server-side resources used by Attachment Taxonomies
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2341.98 ▲2.57
Dashboard /wp-admin3.58 ▲0.2845.79 ▼0.32
Posts /wp-admin/edit.php3.63 ▲0.2848.88 ▲2.33
Add New Post /wp-admin/post-new.php6.18 ▲0.2994.49 ▲1.19
Media Library /wp-admin/upload.php3.52 ▲0.2937.80 ▲4.99
Tags /wp-admin/edit-tags.php?taxonomy=attachment_tag&post_type=attachment3.4434.07
Categories /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment3.4436.39

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Attachment Taxonomies
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3614.70 ▲0.461.71 ▼0.0443.29 ▼1.36
Dashboard /wp-admin2,203 ▲265.63 ▲0.0593.05 ▼7.9442.79 ▼1.30
Posts /wp-admin/edit.php2,108 ▲81.96 ▼0.0539.29 ▲2.9037.18 ▲2.89
Add New Post /wp-admin/post-new.php1,553 ▲2725.29 ▲2.08587.66 ▼162.4671.39 ▲12.53
Media Library /wp-admin/upload.php1,446 ▲434.33 ▲0.05102.18 ▲4.9944.01 ▲2.18
Tags /wp-admin/edit-tags.php?taxonomy=attachment_tag&post_type=attachment1,2582.1230.5932.41
Categories /wp-admin/edit-tags.php?taxonomy=attachment_category&post_type=attachment1,2822.1227.0730.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: media, attachment, taxonomy, tags, categories

attachment-taxonomies/attachment-taxonomies.php Passed 13 tests

Analyzing the main PHP file in "Attachment Taxonomies" version 1.2.1
105 characters long description:
This plugin adds categories and tags to the WordPress media library - lightweight and developer-friendly.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,113 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP142371,013989
JavaScript31228124

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.42
Average class complexity10.69
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes12100.00%
Methods71
▷ Static methods68.45%
▷ Public methods5577.46%
▷ Protected methods00.00%
▷ Private methods1622.54%
Functions7
▷ Named functions00.00%
▷ Anonymous functions7100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected