Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼4.75ms] Passed 4 tests
Server-side resources used by Custom Post Type Parents
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.47 ▲4.77 |
Dashboard /wp-admin | 3.41 ▲0.11 | 52.83 ▼2.36 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 48.17 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.42 ▼9.69 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.98 ▼3.63 |
Custom Post Type Parents /wp-admin/options-general.php?page=custom-post-type-parents | 3.27 | 32.65 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_simple-section-nav |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type Parents
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.37 ▲0.15 | 2.08 ▲0.28 | 44.58 ▲5.59 |
Dashboard /wp-admin | 2,196 ▲22 | 5.59 ▲0.07 | 96.30 ▼0.44 | 41.86 ▲0.33 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.03 | 35.70 ▼3.20 | 34.22 ▼2.91 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.29 ▲0.04 | 665.78 ▲1.11 | 54.89 ▲1.03 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▼0.07 | 97.03 ▲1.36 | 41.97 ▼0.30 |
Custom Post Type Parents /wp-admin/options-general.php?page=custom-post-type-parents | 857 | 2.03 | 24.36 | 28.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_simple-section-nav
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% 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
- > GET request to /wp-admin/options-general.php?page=custom-post-type-parents
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=custom-post-type-parents
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-type-parents/includes/custom-simple-section-nav.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-parents/custom-post-type-parents.php:27
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2 in custom-post-type-parents/assets to your readme.txt
custom-post-type-parents/custom-post-type-parents.php Passed 13 tests
The main file in "Custom Post Type Parents" v. 1.1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
88 characters long description:
Set a "parent page" for custom post types that is indicated in menus and lists of pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin350 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 103 | 241 | 337 |
Markdown | 5 | 5 | 0 | 10 |
JavaScript | 2 | 3 | 10 | 3 |
CSS | 1 | 0 | 7 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 19 | 90.48% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.52% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin