94% custom-post-type-cpt-cusom-taxonomy-ct-manager

Code Review | Custom Post Type and Taxonomy GUI Manager

WordPress plugin Custom Post Type and Taxonomy GUI Manager scored 94% from 54 tests.

About plugin

  • Plugin page: custom-post-type-...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 5.8.1
  • First release: Dec 24, 2012
  • Latest release: Dec 19, 2014
  • Number of updates: 97
  • Update frequency: every 7.5 days
  • Top authors: ankit.gade@rtcamp.com (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active / 5,773 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼139.74ms] Passed 4 tests

A check of server-side resources used by Custom Post Type and Taxonomy GUI Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0136.44 ▲2.42
Dashboard /wp-admin3.07 ▲0.0252.45 ▲6.67
Posts /wp-admin/edit.php3.13 ▲0.0248.65 ▲10.02
Add New Post /wp-admin/post-new.php5.43 ▼0.0089.79 ▼570.20
Media Library /wp-admin/upload.php3.02 ▲0.0234.53 ▲2.14
Create Custom Taxonomy /wp-admin/admin.php?page=cptctm-create-ct2.9828.49
Create Custom Post Type /wp-admin/admin.php?page=cptctm-create-cpt2.9828.64
CPT CT Manager /wp-admin/admin.php?page=cptctm2.9828.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Custom Post Type and Taxonomy GUI Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲13015.88 ▲0.308.17 ▼1.6745.96 ▼5.81
Dashboard /wp-admin3,009 ▲786.16 ▲0.20140.12 ▼5.56140.00 ▲28.37
Posts /wp-admin/edit.php2,800 ▲612.72 ▲0.0268.99 ▼8.3088.46 ▼0.74
Add New Post /wp-admin/post-new.php1,713 ▲21315.25 ▼3.45415.76 ▲22.24111.15 ▲4.22
Media Library /wp-admin/upload.php1,796 ▼115.02 ▼0.01134.55 ▼8.76142.71 ▲20.38
Create Custom Taxonomy /wp-admin/admin.php?page=cptctm-create-ct1,1612.1054.6180.58
Create Custom Post Type /wp-admin/admin.php?page=cptctm-create-cpt1,1432.1256.1983.15
CPT CT Manager /wp-admin/admin.php?page=cptctm1,1132.1055.7373.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-post-type-cpt-cusom-taxonomy-ct-manager/rt-manager.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-cpt-cusom-taxonomy-ct-manager/rtm-core-functions/rtm-hooks.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: taxonomy, cpt ct manager, cpt-ct-manager, custom post type, tags...

custom-post-type-cpt-cusom-taxonomy-ct-manager/rt-manager.php 85% from 13 tests

"Custom Post Type and Taxonomy GUI Manager" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-post-type-cpt-cusom-taxonomy-ct-manager.php" instead of "rt-manager.php")

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
Good job! No executable or dangerous file extensions detected329 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
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 functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings