79% taxonomy-terms-grid

Code Review | Taxonomy Terms Grid

WordPress plugin Taxonomy Terms Grid scored 79% from 54 tests.

About plugin

  • Plugin page: taxonomy-terms-grid
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2019
  • Latest release: Aug 7, 2019
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: ivanchernyakov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 697 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.52MB] [CPU: ▲3.03ms] Passed 4 tests

This is a short check of server-side resources used by Taxonomy Terms Grid
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5345.10 ▲2.74
Dashboard /wp-admin3.85 ▲0.5554.94 ▲2.97
Posts /wp-admin/edit.php3.90 ▲0.5556.34 ▲13.18
Add New Post /wp-admin/post-new.php6.39 ▲0.50102.14 ▲1.00
Media Library /wp-admin/upload.php3.71 ▲0.4843.09 ▲5.42
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins3.7834.81

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Taxonomy Terms Grid: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17413.66 ▼1.145.74 ▲3.7241.35 ▼6.30
Dashboard /wp-admin2,251 ▲605.84 ▲0.9698.63 ▼4.5742.62 ▲5.15
Posts /wp-admin/edit.php2,148 ▲592.05 ▲0.0341.12 ▲0.4740.73 ▲6.17
Add New Post /wp-admin/post-new.php1,554 ▲1721.13 ▲3.03588.55 ▼31.6647.31 ▼6.29
Media Library /wp-admin/upload.php1,438 ▲534.25 ▲0.0893.96 ▼2.9147.05 ▲5.45
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins9792.0925.4929.62

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taxonomy-terms-grid/public/partials/taxonomy-terms-grid-public-display.php
    • > /wp-content/plugins/taxonomy-terms-grid/admin/partials/taxonomy-terms-grid-admin-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/taxonomy-terms-grid/includes/class-tgm-plugin-activation.php:2109

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: post, taxonomy, term, grid

taxonomy-terms-grid/taxonomy-terms-grid.php Passed 13 tests

This is the main PHP file of "Taxonomy Terms Grid" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
65 characters long description:
Create grid list from your taxonomy terms (e.g. post categories).

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
No dangerous file extensions were detected2,288 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP136372,2022,257
CSS20925
JavaScript24546

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.48
Average class complexity25.71
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.60
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods133
▷ Static methods118.27%
▷ Public methods10578.95%
▷ Protected methods2317.29%
▷ Private methods53.76%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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