90% f4-media-taxonomies

Code Review | F4 Media Taxonomies

WordPress plugin F4 Media Taxonomies scored90%from 54 tests.

About plugin

  • Plugin page: f4-media-taxonomies
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2017
  • Latest release: Nov 24, 2022
  • Number of updates: 38
  • Update frequency: every 54.0 days
  • Top authors: faktorvier (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

1,000+ active /17,165 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.78ms] Passed 4 tests

An overview of server-side resources used by F4 Media Taxonomies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.49 ▼3.52
Dashboard /wp-admin3.40 ▲0.1048.39 ▼7.99
Posts /wp-admin/edit.php3.52 ▲0.1653.89 ▼1.42
Add New Post /wp-admin/post-new.php6.00 ▲0.1194.08 ▼6.17
Media Library /wp-admin/upload.php3.32 ▲0.0940.36 ▲5.89

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for F4 Media Taxonomies
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲5714.45 ▲0.171.78 ▼0.1940.38 ▼3.22
Dashboard /wp-admin2,249 ▲786.20 ▲0.63120.12 ▲15.1141.96 ▼2.96
Posts /wp-admin/edit.php2,178 ▲783.30 ▲1.2842.13 ▲0.5627.19 ▼11.12
Add New Post /wp-admin/post-new.php1,542 ▲1423.26 ▲0.08602.77 ▼71.7332.35 ▼18.03
Media Library /wp-admin/upload.php1,412 ▲124.21 ▼0.0189.81 ▼13.3642.95 ▼6.09

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
These attributes need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
Please take inspiration from this readme.txt

f4-media-taxonomies/f4-media-taxonomies.php Passed 13 tests

The main PHP file in "F4 Media Taxonomies" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Add filters and bulk actions for attachment categories, tags and custom taxonomies.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin657 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP486179321
JavaScript3396212
CSS1275124

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16100.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin