78% simple-tags

Code Review | TaxoPress is the WordPress Tag, Category, and Taxonomy Manager

WordPress plugin TaxoPress is the WordPress Tag, Category, and Taxonomy Manager scored78%from 54 tests.

About plugin

  • Plugin page: simple-tags
  • Plugin version: 3.11.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.3
  • WordPress version: 6.3.1
  • First release: Oct 10, 2007
  • Latest release: Nov 2, 2023
  • Number of updates: 517
  • Update frequency: every 11.4 days
  • Top authors: momo360modena (70.6%)publishpress (9.28%)olatechpro (6.58%)ojopaul (5.8%)stevejburge (4.26%)

Code review

54 tests

User reviews

144 reviews

Install metrics

60,000+ active /4,424,850 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲3.41MB] [CPU: ▲19.79ms] Passed 4 tests

Server-side resources used by TaxoPress is the WordPress Tag, Category, and Taxonomy Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.14 ▲1.6752.51 ▲12.29
Dashboard /wp-admin7.34 ▲3.9973.60 ▲10.83
Posts /wp-admin/edit.php7.40 ▲4.0380.24 ▲33.38
Add New Post /wp-admin/post-new.php9.91 ▲4.02117.22 ▲22.67
Media Library /wp-admin/upload.php7.20 ▲3.9770.86 ▲33.76
Auto Links /wp-admin/admin.php?page=st_autolinks7.1860.40
Related Posts /wp-admin/admin.php?page=st_related_posts7.1860.82
Terms Display /wp-admin/admin.php?page=st_terms_display7.1858.57
Posts /wp-admin/admin.php?page=st_posts7.2161.74
Dashboard /wp-admin/admin.php?page=st_dashboard7.1759.00
Settings /wp-admin/admin.php?page=st_options7.4163.29
Upgrade to Pro /wp-admin/admin.php?page=st_options-menu-upgrade-link7.1754.94
TaxoPress AI /wp-admin/admin.php?page=st_taxopress_ai7.1972.74
Taxonomies /wp-admin/admin.php?page=st_taxonomies7.1962.10
Current Post /wp-admin/admin.php?page=st_post_tags7.1865.66

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 367 new files
Database: no new tables, 29 new options
New WordPress options
simpletags-version
can_compress_scripts
taxopress_autoterms
taxopress_autoterm_ids_increament
taxopress_relatedpost_ids_increament
taxopress_default_tagclouds
taxopress_relatedposts
db_upgraded
widget_theysaidso_widget
widget_simpletags
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for TaxoPress is the WordPress Tag, Category, and Taxonomy Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15214.35 ▼0.061.62 ▲0.0029.91 ▼12.34
Dashboard /wp-admin2,282 ▲1015.71 ▲0.0598.14 ▼17.9246.17 ▲3.43
Posts /wp-admin/edit.php2,194 ▲942.24 ▲0.2441.05 ▲6.2635.64 ▲1.93
Add New Post /wp-admin/post-new.php6,660 ▲5,13427.70 ▲4.08970.11 ▲309.2845.05 ▼7.30
Media Library /wp-admin/upload.php1,484 ▲814.29 ▲0.1697.57 ▼2.6244.88 ▲1.66
Auto Links /wp-admin/admin.php?page=st_autolinks1,1862.0443.4630.60
Related Posts /wp-admin/admin.php?page=st_related_posts1,1921.7826.6031.50
Terms Display /wp-admin/admin.php?page=st_terms_display1,2022.2033.9030.01
Posts /wp-admin/admin.php?page=st_posts1,4222.7451.3132.57
Dashboard /wp-admin/admin.php?page=st_dashboard1,2652.0225.2141.28
Settings /wp-admin/admin.php?page=st_options2,6262.6958.4437.55
Upgrade to Pro /wp-admin/admin.php?page=st_options-menu-upgrade-link2,42610.27437.34116.98
TaxoPress AI /wp-admin/admin.php?page=st_taxopress_ai1,9252.8070.5236.77
Taxonomies /wp-admin/admin.php?page=st_taxonomies1,4302.2134.6231.89
Current Post /wp-admin/admin.php?page=st_post_tags1,1841.9028.4831.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 27 options
    • widget_simpletags-posttags
    • taxopress_reviews_installed_on
    • taxopress_default_autoterms
    • widget_recent-comments
    • widget_simpletags-shortcode
    • widget_simpletags-relatedposts
    • taxopress_posttags_ids_increament
    • taxopress_tagclouds
    • taxopress_autoterm_ids_increament
    • taxopress_tagcloud_ids_increament
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Please take a closer look at the following
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-tags/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php
    • > /wp-content/plugins/simple-tags/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
    • > /wp-content/plugins/simple-tags/vendor/sabre/vobject/bin/generateicalendardata.php
    • > /wp-content/plugins/simple-tags/simple-tags.php
  • 344× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Sabre\\VObject\\Property\\Text' not found in wp-content/plugins/simple-tags/vendor/sabre/vobject/lib/Property/UtcOffset.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simple-tags/vendor/sabre/vobject/tests/VObject/Recur/EventIterator/FifthTuesdayProblemTest.php:8
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/simple-tags/inc/related-posts-table.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-tags/inc/terms-functions.php:73
    • > PHP Warning
      simplexml_load_string(): </style> in wp-content/plugins/simple-tags/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
    • > PHP Fatal error
      Uncaught Error: Interface 'PPVersionNotices\\Template\\TemplateLoaderInterface' not found in wp-content/plugins/simple-tags/vendor/publishpress/wordpress-version-notices/src/Template/TemplateLoader.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simple-tags/vendor/sabre/vobject/tests/VObject/Issue96Test.php:5
    • > PHP Warning
      simplexml_load_string(): Entity: line 1078: parser error : Opening and ending tag mismatch: link line 0 and html in wp-content/plugins/simple-tags/vendor/sabre/vobject/bin/fetch_windows_zones.php on line 11
    • > PHP Warning
      Use of undefined constant STAGS_DIR - assumed 'STAGS_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-tags/inc/helper.options.admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/simple-tags/vendor/sabre/vobject/tests/VObject/EmptyValueIssueTest.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

simple-tags/simple-tags.php 92% from 13 tests

The main file in "TaxoPress is the WordPress Tag, Category, and Taxonomy Manager" v. 3.11.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Requires PHP: The required version number must match the one declared in readme.txt ("7.2.5" instead of "5.6")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected76,821 lines of code in 320 files:
LanguageFilesBlank linesComment linesLines of code
PHP27310,48712,65643,470
PO File109,36112,26522,063
JavaScript151,8639497,569
CSS10475672,661
Markdown41910526
JSON500469
XML2121947
YAML14016

PHP code 50% from 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 162)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity18.58
▷ Minimum class complexity1.00
▷ Maximum class complexity212.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity162.00
Code structure
Namespaces28
Interfaces8
Traits0
Classes220
▷ Abstract classes52.27%
▷ Concrete classes21597.73%
▷ Final classes62.79%
Methods1,458
▷ Static methods24917.08%
▷ Public methods1,31390.05%
▷ Protected methods1288.78%
▷ Private methods171.17%
Functions244
▷ Named functions20784.84%
▷ Anonymous functions3715.16%
Constants64
▷ Global constants1523.44%
▷ Class constants4976.56%
▷ Public constants49100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/taxopress-ai/assets/images/single-tag.png1.09KB0.81KB▼ 25.38%
modules/taxopress-ai/assets/images/tag.png1.13KB0.79KB▼ 29.94%
modules/taxopress-ai/assets/images/open-calais.png1.10KB0.78KB▼ 28.65%
modules/taxopress-ai/assets/images/ibm-watson.png1.26KB1.58KB0.00%
modules/taxopress-ai/assets/images/open-ai.png1.81KB1.69KB▼ 6.84%