78% taxonomy-taxi

Code Review | Taxonomy Taxi

WordPress plugin Taxonomy Taxi scored78%from 54 tests.

About plugin

  • Plugin page: taxonomy-taxi
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4.1
  • WordPress version: 6.3.1
  • First release: Jun 30, 2011
  • Latest release: Aug 4, 2020
  • Number of updates: 50
  • Update frequency: every 66.4 days
  • Top authors: postpostmodern (96%)pinecone-dot-io (6%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,104 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.13ms] Passed 4 tests

Analyzing server-side resources used by Taxonomy Taxi
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.94 ▼1.23
Dashboard /wp-admin3.32 ▲0.0248.41 ▲3.31
Posts /wp-admin/edit.php3.48 ▲0.1350.69 ▼2.96
Add New Post /wp-admin/post-new.php5.90 ▲0.0288.63 ▼10.93
Media Library /wp-admin/upload.php3.27 ▲0.0432.72 ▼5.40
Taxonomy Taxi /wp-admin/options-general.php?page=taxonomy_taxi3.2731.10

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Taxonomy Taxi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.69 ▼0.571.74 ▼0.0240.63 ▼3.32
Dashboard /wp-admin2,210 ▲255.86 ▲0.07105.50 ▲2.2242.92 ▼1.18
Posts /wp-admin/edit.php2,183 ▲942.02 ▲0.0540.36 ▼1.1537.11 ▲1.73
Add New Post /wp-admin/post-new.php1,517 ▼217.62 ▼5.75639.10 ▲30.7254.88 ▼1.21
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.0093.60 ▼12.9140.41 ▼2.87
Taxonomy Taxi /wp-admin/options-general.php?page=taxonomy_taxi8362.0925.4323.97

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 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 0% from 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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taxonomy-taxi/views/admin/options-general_footer.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Taxonomy_Taxi\\is_admin() in wp-content/plugins/taxonomy-taxi/index.php:11
    • > PHP Notice
      Undefined variable: version in wp-content/plugins/taxonomy-taxi/views/admin/options-general_footer.php on line 1
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/taxonomy-taxi/views/admin/options-general_post-type.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Taxonomy_Taxi\\add_action() in wp-content/plugins/taxonomy-taxi/admin.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/taxonomy-taxi/views/admin/edit-option.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/taxonomy-taxi/views/admin/options-general.php:5
    • > PHP Notice
      Undefined variable: taxonomies in wp-content/plugins/taxonomy-taxi/views/admin/options-general_post-type.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_CategoryDropdown' not found in wp-content/plugins/taxonomy-taxi/lib/Taxonomy_Taxi/Walker.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Taxonomy_Taxi\\is_admin() in wp-content/plugins/taxonomy-taxi/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: taxonomy, custom taxonomies, term

taxonomy-taxi/_plugin.php 92% from 13 tests

"Taxonomy Taxi" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("taxonomy-taxi.php" instead of "_plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected1,043 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP232454731,006
JSON20023
JavaScript14011
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity12.60
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods55
▷ Static methods3360.00%
▷ Public methods5294.55%
▷ Protected methods23.64%
▷ Private methods11.82%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin