74% go-taxonomy

Code Review | Gigaom Taxonomy

WordPress plugin Gigaom Taxonomy scored74%from 54 tests.

About plugin

  • Plugin page: go-taxonomy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 11, 2014
  • Latest release: Nov 11, 2014
  • Number of updates: 7
  • Update frequency: every 0.4 days
  • Top authors: methnen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /623 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.71MB] [CPU: ▼47.02ms] Passed 4 tests

This is a short check of server-side resources used by Gigaom Taxonomy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.29 ▼1.178.49 ▼27.66
Dashboard /wp-admin2.31 ▼1.0412.02 ▼46.81
Posts /wp-admin/edit.php2.31 ▼1.0510.54 ▼34.27
Add New Post /wp-admin/post-new.php2.31 ▼3.5810.88 ▼79.33
Media Library /wp-admin/upload.php2.31 ▼0.929.61 ▼25.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gigaom Taxonomy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.021.65 ▼0.2141.75 ▼2.42
Dashboard /wp-admin2,195 ▲155.62 ▼0.0490.70 ▼6.4640.42 ▼3.10
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0240.52 ▲4.5735.81 ▲0.34
Add New Post /wp-admin/post-new.php1,526 ▼023.01 ▼0.06675.39 ▼8.0251.46 ▼1.20
Media Library /wp-admin/upload.php1,394 ▼64.19 ▲0.0396.25 ▼11.9342.04 ▼5.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/go-taxonomy/components/class-go-taxonomy.php+46
    Undefined index: taxonomies_to_hide
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/go-taxonomy/components/class-go-taxonomy.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Contributors: The plugin contributors field is missing
The official readme.txt might help

go-taxonomy/go-taxonomy.php Passed 13 tests

The main PHP script in "Gigaom Taxonomy" version 1.0 is automatically included on every request by WordPress
92 characters long description:
Registers taxonomies programtically from a config array and provides other helper functions.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin284 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26673284

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected