Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.42MB] [CPU: ▲0.04ms] Passed 4 tests
Analyzing server-side resources used by WP Custom Post Type
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.89 ▲0.43 | 48.63 ▲9.79 |
Dashboard /wp-admin | 3.72 ▲0.42 | 47.70 ▼1.86 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 50.18 ▲3.44 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.45 | 83.77 ▼9.25 |
Media Library /wp-admin/upload.php | 3.64 ▲0.41 | 38.86 ▲7.84 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 3.68 | 38.96 |
Portfolio categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio | 3.63 | 35.81 |
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio | 3.85 | 48.75 |
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial | 3.76 | 50.93 |
All Sliders /wp-admin/edit.php?post_type=slider | 3.68 | 38.52 |
Add New Callout /wp-admin/post-new.php?post_type=callout | 3.77 | 51.69 |
All Callouts /wp-admin/edit.php?post_type=callout | 3.68 | 36.26 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 3.76 | 52.78 |
All Clients /wp-admin/edit.php?post_type=client | 3.68 | 34.34 |
Add New Client /wp-admin/post-new.php?post_type=client | 3.77 | 48.83 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Custom Post Type
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲389 | 14.10 ▼0.29 | 6.11 ▲4.39 | 48.59 ▲11.90 |
Dashboard /wp-admin | 2,393 ▲221 | 5.81 ▲0.77 | 98.59 ▼29.14 | 39.15 ▼6.11 |
Posts /wp-admin/edit.php | 2,279 ▲190 | 2.02 ▲0.01 | 39.32 ▲4.14 | 37.68 ▲1.80 |
Add New Post /wp-admin/post-new.php | 1,674 ▲141 | 23.39 ▲0.08 | 653.31 ▼30.48 | 57.88 ▲0.46 |
Media Library /wp-admin/upload.php | 1,581 ▲193 | 4.24 ▲0.04 | 96.64 ▼0.61 | 44.77 ▼3.50 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,249 | 2.01 | 32.56 | 29.77 |
Portfolio categories /wp-admin/edit-tags.php?taxonomy=portfolio_category&post_type=portfolio | 1,455 | 2.15 | 27.23 | 29.90 |
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio | 2,661 | 7.71 | 165.62 | 72.33 |
Add New Testimonial /wp-admin/post-new.php?post_type=testimonial | 2,487 | 7.69 | 157.73 | 53.82 |
All Sliders /wp-admin/edit.php?post_type=slider | 1,249 | 1.98 | 30.92 | 32.42 |
Add New Callout /wp-admin/post-new.php?post_type=callout | 2,488 | 7.59 | 167.95 | 58.34 |
All Callouts /wp-admin/edit.php?post_type=callout | 1,249 | 1.98 | 30.69 | 26.48 |
Add New Slider /wp-admin/post-new.php?post_type=slider | 2,499 | 7.91 | 158.36 | 55.18 |
All Clients /wp-admin/edit.php?post_type=client | 1,249 | 1.99 | 31.00 | 28.96 |
Add New Client /wp-admin/post-new.php?post_type=client | 2,442 | 7.75 | 154.45 | 57.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-custom-post-type/public/partials/wp-custom-post-type-public-display.php
- > /wp-content/plugins/wp-custom-post-type/admin/partials/wp-custom-post-type-admin-display.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-post-type/includes/wp-custom-post-type-register.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-custom-post-type/includes/Custom-function.php:146
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-custom-post-type/includes/wp-custom-metabox.php:38
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-custom-post-type/public/class-wp-custom-post-type-public.php:115
- > PHP Fatal error
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)
No browser errors were detected
Optimizations
Plugin configuration 96% 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
2 plugin tags: comments, spam
wp-custom-post-type/wp-custom-post-type.php 92% from 13 tests
The main PHP script in "WP Custom Post Type" version 2.0.0 is automatically included on every request by WordPress
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected9,694 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 2,254 | 39 | 8,215 |
PHP | 15 | 307 | 609 | 1,438 |
JavaScript | 2 | 13 | 27 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin