84% media-content-taxonomy

Code Review | Media Content Taxonomy

WordPress plugin Media Content Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: media-content-tax...
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 8, 2017
  • Latest release: Sep 25, 2017
  • Number of updates: 26
  • Update frequency: every 0.7 days
  • Top authors: subrataemfluence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▲0.18ms] Passed 4 tests

Analyzing server-side resources used by Media Content Taxonomy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.25 ▼3.48
Dashboard /wp-admin3.34 ▲0.0458.05 ▲3.99
Posts /wp-admin/edit.php3.40 ▲0.0451.55 ▲4.95
Add New Post /wp-admin/post-new.php5.92 ▲0.0498.92 ▼1.86
Media Library /wp-admin/upload.php3.27 ▲0.0437.09 ▲2.09
Content Category /wp-admin/edit-tags.php?taxonomy=media_content_category&post_type=attachment3.3939.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Media Content Taxonomy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,843 ▲8214.58 ▲0.231.67 ▲0.0442.21 ▲2.76
Dashboard /wp-admin2,252 ▲786.01 ▲0.44121.15 ▲23.7137.53 ▼0.62
Posts /wp-admin/edit.php2,177 ▲803.12 ▲1.1254.69 ▲15.6434.98 ▼2.44
Add New Post /wp-admin/post-new.php1,538 ▲1223.26 ▲0.29655.94 ▼1.4538.35 ▼15.44
Media Library /wp-admin/upload.php1,418 ▲184.16 ▼0.0281.38 ▼24.7745.06 ▼0.18
Content Category /wp-admin/edit-tags.php?taxonomy=media_content_category&post_type=attachment1,3512.9741.4630.42

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/media-content-taxonomy/media-content-taxonomy-filter.php:14

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: custom taxonomy, media content, media content taxonomy filter, media content filter, taxonomy filter

media-content-taxonomy/media-content-taxonomy-filter.php 85% from 13 tests

The entry point to "Media Content Taxonomy" version 0.0.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("media-content-taxonomy.php" instead of "media-content-taxonomy-filter.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)

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 plugin166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12019105
JavaScript111135
Markdown121026

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected