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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 5.44 ▼38.95 |
Dashboard /wp-admin | 2.11 ▼1.24 | 6.36 ▼63.40 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.24 ▼42.72 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.87 ▼91.35 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.40 ▼35.38 |
PT & T Manager /wp-admin/options-general.php?page=ptt-manager | 2.11 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.74 ▲0.57 | 2.20 ▲0.19 | 47.30 ▲3.07 |
Dashboard /wp-admin | 2,213 ▲22 | 5.88 ▼0.02 | 99.96 ▼9.86 | 40.24 ▼2.68 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.02 ▲0.03 | 36.10 ▼3.39 | 31.08 ▼3.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.08 ▲5.59 | 670.14 ▼7.09 | 58.55 ▲5.20 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.03 | 111.41 ▲6.64 | 48.86 ▲1.26 |
PT & T Manager /wp-admin/options-general.php?page=ptt-manager | 1,410 | 1.14 | 6.94 | 30.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 537 | 752 | 1,696 |
JavaScript | 1 | 19 | 14 | 322 |
CSS | 2 | 1 | 0 | 69 |
Markdown | 1 | 13 | 0 | 27 |
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 code | 0.43 |
Average class complexity | 39.75 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 5.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 4 | 5.33% |
▷ Public methods | 51 | 68.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 32.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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