82% add-tags-and-category-to-page

Code Review | Add Tags And Category To Page and Post Types

WordPress plugin Add Tags And Category To Page and Post Types scored 82% from 54 tests.

About plugin

  • Plugin page: add-tags-and-cate...
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Mar 24, 2012
  • Latest release: May 10, 2021
  • Number of updates: 12
  • Update frequency: every 277.9 days
  • Top authors: dnesscarkey (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

3,000+ active / 47,356 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼295.02ms] Passed 4 tests

An overview of server-side resources used by Add Tags And Category To Page and Post Types
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0554.45 ▲4.55
Dashboard /wp-admin3.43 ▲0.0233.65 ▼0.78
Posts /wp-admin/edit.php3.67 ▲0.0239.74 ▲4.07
Add New Post /wp-admin/post-new.php6.91 ▼0.0695.46 ▼1,176.05
Media Library /wp-admin/upload.php3.32 ▲0.0124.29 ▼7.33
Add Tags And Category /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php3.2925.45

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Tags And Category To Page and Post Types
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,788 ▲4416.19 ▲0.577.51 ▲1.892.38 ▼0.28
Dashboard /wp-admin2,893 ▲326.13 ▼0.05121.40 ▼13.04156.69 ▼2.03
Posts /wp-admin/edit.php2,690 ▼43.23 ▲0.0064.52 ▼0.53140.10 ▼0.72
Add New Post /wp-admin/post-new.php1,664 ▼8816.08 ▼4.74397.56 ▼67.67159.26 ▼4.49
Media Library /wp-admin/upload.php1,697 ▼45.50 ▼0.00144.76 ▲0.09191.68 ▼4.59
Add Tags And Category /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php1,3432.4455.58100.25

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=add-tags-and-category-to-page/plugin_interface.php
    • > Notice in wp-content/plugins/add-tags-and-category-to-page/includes/tcp_post_type_select.php+2
    Undefined index: submit-tcp-select

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/add-tags-and-category-to-page/includes/tcp_footer.php
    • > /wp-content/plugins/add-tags-and-category-to-page/includes/tcp_header.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-tags-and-category-to-page/add-tags-and-category-to-page.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-tags-and-category-to-page/plugin_interface.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/add-tags-and-category-to-page/includes/tcp_post_type_select.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Admin Setting)
  • Requires at least: Invalid plugin version format
You can look at the official readme.txt

add-tags-and-category-to-page/add-tags-and-category-to-page.php Passed 13 tests

"Add Tags And Category To Page and Post Types" version 2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
69 characters long description:
This plugin adds tags and category to wordpress pages and post types.

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
There were no executable files found in this plugin240 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions6100.00%
▷ Anonymous functions00.00%
▷ 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
1 PNG file occupies 0.22MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png226.26KB37.72KB▼ 83.33%