10% ptt-manager

Code Review | Post Type & Taxonomy Manager / PT & T Manager / PTT Manager

WordPress plugin Post Type & Taxonomy Manager / PT & T Manager / PTT Manager scored10%from 54 tests.

About plugin

  • Plugin page: ptt-manager
  • Plugin version: 0.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Mar 20, 2017
  • Latest release: Jun 9, 2017
  • Number of updates: 6
  • Update frequency: every 13.2 days
  • Top authors: tribalNerd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /821 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/ptt-manager/ptt-manager.php+50
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.91MB] [CPU: ▼59.11ms] Passed 4 tests

This is a short check of server-side resources used by Post Type & Taxonomy Manager / PT & T Manager / PTT Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.44 ▼38.95
Dashboard /wp-admin2.11 ▼1.246.36 ▼63.40
Posts /wp-admin/edit.php2.11 ▼1.257.24 ▼42.72
Add New Post /wp-admin/post-new.php2.11 ▼3.786.87 ▼91.35
Media Library /wp-admin/upload.php2.11 ▼1.126.40 ▼35.38
PT & T Manager /wp-admin/options-general.php?page=ptt-manager2.117.73

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
recovery_mode_email_last_sent
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Type & Taxonomy Manager / PT & T Manager / PTT Manager
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.74 ▲0.572.20 ▲0.1947.30 ▲3.07
Dashboard /wp-admin2,213 ▲225.88 ▼0.0299.96 ▼9.8640.24 ▼2.68
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0336.10 ▼3.3931.08 ▼3.25
Add New Post /wp-admin/post-new.php1,536 ▲2223.08 ▲5.59670.14 ▼7.0958.55 ▲5.20
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.03111.41 ▲6.6448.86 ▲1.26
PT & T Manager /wp-admin/options-general.php?page=ptt-manager1,4101.146.9430.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/ptt-manager/ptt-manager.php+50
    define(): Declaration of case-insensitive constants is deprecated
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ptt-manager
    • > Deprecated in wp-content/plugins/ptt-manager/ptt-manager.php+50
    define(): Declaration of case-insensitive constants is deprecated
    • > GET request to /wp-admin/options-general.php?page=ptt-manager
    • > Error in wp-content/plugins/ptt-manager/templates/sidebar.php+9
    Uncaught Error: Call to undefined method PTTManager_AdminArea::sidebar() in wp-content/plugins/ptt-manager/templates/sidebar.php:9
    Stack trace:
    #0 wp-content/plugins/ptt-manager/templates/footer.php(8): require_once()
    #1 wp-content/plugins/ptt-manager/classes/class-adminarea.php(132): require_once('/var/www/wordpr...')
    #2 wp-includes/class-wp-hook.php(310): PTTManager_AdminArea->display()
    #3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #4 wp-includes/plugin.php(517): WP_Hook->do_action()
    #5 wp-admin/admin.php(259): do_action()
    #6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #7 {main}
    thrown

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 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: custom taxonomies, custom taxonomy, post type, taxonomies, post types...

ptt-manager/ptt-manager.php Passed 13 tests

Analyzing the main PHP file in "Post Type & Taxonomy Manager / PT & T Manager / PTT Manager" version 0.1.3
49 characters long description:
Post Type & Taxonomy Manager for WordPress Themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,114 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP195377521,696
JavaScript11914322
CSS21069
Markdown113027

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity39.75
▷ Minimum class complexity5.00
▷ Maximum class complexity85.00
Average method complexity5.13
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods75
▷ Static methods45.33%
▷ Public methods5168.00%
▷ Protected methods00.00%
▷ Private methods2432.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
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 files were detected