83% tt-cpt-kit

Code Review | TT CPT Kit

WordPress plugin TT CPT Kit scored83%from 54 tests.

About plugin

  • Plugin page: tt-cpt-kit
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1
  • WordPress version: 6.3.1
  • First release: Feb 19, 2015
  • Latest release: Feb 19, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: ThemesTitan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /525 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
Installer ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼1.55ms] Passed 4 tests

This is a short check of server-side resources used by TT CPT Kit
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1843.38 ▼5.90
Dashboard /wp-admin3.48 ▲0.1744.95 ▼1.68
Posts /wp-admin/edit.php3.53 ▲0.1749.28 ▲2.67
Add New Post /wp-admin/post-new.php6.06 ▲0.1784.89 ▼0.41
Media Library /wp-admin/upload.php3.40 ▲0.1735.30 ▲1.78
Add New Service /wp-admin/post-new.php?post_type=services3.4343.64
Add New Slide /wp-admin/post-new.php?post_type=slides3.4340.83
Add New Team Member /wp-admin/post-new.php?post_type=team3.4340.16
All Slides /wp-admin/edit.php?post_type=slides3.4433.27
Add New Client /wp-admin/post-new.php?post_type=clients3.4340.05
Add New Pricing /wp-admin/post-new.php?post_type=pricing3.4343.02
All Team Members /wp-admin/edit.php?post_type=team3.4432.76
All Services /wp-admin/edit.php?post_type=services3.4434.63
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials3.4338.83
Add New Feature /wp-admin/post-new.php?post_type=features3.4341.09

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: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by TT CPT Kit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,065 ▲29413.23 ▼1.362.11 ▲0.0543.31 ▼1.91
Dashboard /wp-admin2,422 ▲2344.89 ▼0.98108.79 ▲7.4436.64 ▼4.47
Posts /wp-admin/edit.php2,305 ▲2372.04 ▲0.0341.25 ▲2.8534.61 ▲1.43
Add New Post /wp-admin/post-new.php1,852 ▲32422.03 ▲3.72682.02 ▲38.3048.68 ▼1.78
Media Library /wp-admin/upload.php1,607 ▲2254.18 ▼0.01100.73 ▲1.6744.11 ▲1.94
Add New Service /wp-admin/post-new.php?post_type=services1,6092.5247.5255.65
Add New Slide /wp-admin/post-new.php?post_type=slides1,6122.6047.8548.36
Add New Team Member /wp-admin/post-new.php?post_type=team1,6092.5148.8651.99
All Slides /wp-admin/edit.php?post_type=slides1,2691.9730.9827.97
Add New Client /wp-admin/post-new.php?post_type=clients1,6092.5049.0655.03
Add New Pricing /wp-admin/post-new.php?post_type=pricing1,6092.5150.4248.50
All Team Members /wp-admin/edit.php?post_type=team1,2782.0131.1832.06
All Services /wp-admin/edit.php?post_type=services1,2781.9332.3028.91
Add New Testimonial /wp-admin/post-new.php?post_type=testimonials1,6092.5048.9558.55
Add New Feature /wp-admin/post-new.php?post_type=features1,6092.5049.6051.33

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-cpt-kit/tt-cpt-kit.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === tt-cpt-kit === )
You can take inspiration from this readme.txt

tt-cpt-kit/tt-cpt-kit.php 85% from 13 tests

"TT CPT Kit" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 190 characters long)
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected155 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11118155

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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
There were not PNG files found in your plugin