Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼3.17ms] Passed 4 tests
Server-side resources used by Disable Custom Post Types
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.08 | 44.51 ▼4.38 |
Dashboard /wp-admin | 3.53 ▲0.18 | 63.10 ▲12.75 |
Posts /wp-admin/edit.php | 3.58 ▲0.18 | 56.03 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.09 | 88.10 ▼9.75 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 39.21 ▲0.12 |
Disable Post Types /wp-admin/options-general.php?page=disable_post_types | 3.36 | 37.34 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
hmk_excl_ptypes |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable Custom Post Types
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,949 ▲188 | 14.97 ▲0.80 | 1.85 ▲0.14 | 42.46 ▲1.91 |
Dashboard /wp-admin | 2,358 ▲178 | 6.35 ▲0.76 | 124.39 ▲37.51 | 53.02 ▲7.52 |
Posts /wp-admin/edit.php | 2,286 ▲189 | 3.49 ▲1.47 | 49.38 ▲13.26 | 31.74 ▼1.53 |
Add New Post /wp-admin/post-new.php | 1,543 ▲15 | 23.53 ▲0.50 | 643.70 ▼30.06 | 34.78 ▼14.32 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.32 ▲0.10 | 83.78 ▼29.26 | 46.37 ▲2.31 |
Disable Post Types /wp-admin/options-general.php?page=disable_post_types | 1,036 | 3.54 | 46.07 | 25.00 |
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: 7 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- hmk_excl_ptypes
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-custom-post-types/settings.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-custom-post-types/settings.php:125
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires at least: Invalid plugin version format
- Requires php: Invalid plugin version format
disable-custom-post-types/disable-custom-post-types.php Passed 13 tests
The principal PHP file in "Disable Custom Post Types" v. 1.0 is loaded by WordPress automatically on each request
52 characters long description:
Simple plugin to disable unwanted custom post types.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin489 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 157 | 209 | 489 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 36.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected