Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Error in wp-content/plugins/post-type-modifier-simple/library_wp.php+2677
Uncaught Error: Class 'WP_Plugins_List_Table' not found in wp-content/plugins/post-type-modifier-simple/library_wp.php:2677
Stack trace:
#0 wp-content/plugins/post-type-modifier-simple/library_wp.php(2611): Puvox\wp_plugin->is_not_bulk_activation()
#1 wp-includes/class-wp-hook.php(312): Puvox\wp_plugin->Puvox\{closure}()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(720): do_action()
Server metrics [RAM: ▲2.10MB] [CPU: ▲2.05ms] Passed 4 tests
This is a short check of server-side resources used by Add Custom Post Type into Post Query
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.68 ▲2.21 | 58.39 ▲1.61 |
Dashboard /wp-admin | 5.51 ▲2.16 | 67.54 ▼1.07 |
Posts /wp-admin/edit.php | 5.32 ▲1.96 | 54.95 ▲0.16 |
Add New Post /wp-admin/post-new.php | 8.03 ▲2.14 | 114.37 ▲7.50 |
Media Library /wp-admin/upload.php | 5.37 ▲2.13 | 64.42 ▲27.77 |
Post Type Modifier /wp-admin/options-general.php?page=post-type-modifier-custom | 5.34 | 54.69 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_post_type_modifier_custom__errors_log |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
post-type-modifier-custom |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Custom Post Type into Post Query
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.39 ▲0.04 | 1.57 ▼0.59 | 38.40 ▼5.01 |
Dashboard /wp-admin | 2,205 ▲28 | 5.58 ▼0.08 | 85.39 ▼20.10 | 39.07 ▼6.20 |
Posts /wp-admin/edit.php | 2,014 ▼89 | 1.97 ▲0.02 | 42.34 ▲3.93 | 34.97 ▲1.01 |
Add New Post /wp-admin/post-new.php | 1,542 ▲6 | 18.02 ▼5.13 | 679.83 ▼84.13 | 63.70 ▲1.70 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.14 ▼0.05 | 112.96 ▲13.71 | 45.92 ▲0.61 |
Post Type Modifier /wp-admin/options-general.php?page=post-type-modifier-custom | 979 | 2.15 | 34.51 | 69.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_post_type_modifier_custom__errors_log
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- post-type-modifier-custom
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Puvox\\library' not found in wp-content/plugins/post-type-modifier-simple/library_wp.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
post-type-modifier-simple/index.php 77% from 13 tests
The primary PHP file in "Add Custom Post Type into Post Query" version 1.04 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("post-type-modifier-simple.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 183 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis 97% from 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
No dangerous file extensions were detected3,559 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 1,255 | 5,097 | 3,559 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,076)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 347.20 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 1,076.00 |
Average method complexity | 2.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 850 | |
▷ Static methods | 102 | 12.00% |
▷ Public methods | 843 | 99.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 0.82% |
Functions | 89 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 89 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin