Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼6.53ms] Passed 4 tests
This is a short check of server-side resources used by Backdrop Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.31 | 45.11 ▼2.13 |
Dashboard /wp-admin | 3.60 ▲0.29 | 54.57 ▲2.19 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 57.17 ▲6.30 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.36 | 88.33 ▼25.22 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 38.08 ▼0.95 |
New Portfolio /wp-admin/post-new.php?post_type=backdrop-portfolio | 6.23 | 86.81 |
Categories /wp-admin/edit-tags.php?taxonomy=backdrop-portfolio-category&post_type=backdrop-portfolio | 3.45 | 37.99 |
Portfolio /wp-admin/edit.php?post_type=backdrop-portfolio | 3.56 | 40.41 |
Tags /wp-admin/edit-tags.php?taxonomy=backdrop-portfolio-tag&post_type=backdrop-portfolio | 3.45 | 39.36 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Backdrop Post Types
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.75 ▲0.37 | 1.76 ▲0.01 | 44.71 ▲2.60 |
Dashboard /wp-admin | 2,227 ▲47 | 5.53 ▼0.16 | 86.55 ▼5.12 | 38.51 ▼7.48 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.04 ▲0.05 | 38.90 ▲0.07 | 38.65 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,555 ▲10 | 17.95 ▼5.11 | 700.14 ▲57.20 | 77.42 ▲25.78 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.23 ▲0.03 | 97.32 ▼4.56 | 40.03 ▼5.99 |
New Portfolio /wp-admin/post-new.php?post_type=backdrop-portfolio | 6,233 | 22.42 | 866.04 | 30.60 |
Categories /wp-admin/edit-tags.php?taxonomy=backdrop-portfolio-category&post_type=backdrop-portfolio | 1,281 | 2.15 | 26.44 | 31.41 |
Portfolio /wp-admin/edit.php?post_type=backdrop-portfolio | 1,135 | 1.99 | 32.85 | 30.48 |
Tags /wp-admin/edit-tags.php?taxonomy=backdrop-portfolio-tag&post_type=backdrop-portfolio | 1,281 | 2.17 | 26.40 | 30.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Interface 'Backdrop\\Contracts\\Bootable' not found in wp-content/plugins/backdrop-post-types/vendor/benlumia007/backdrop/src/Core/ServiceProvider.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function Backdrop\\booted() in wp-content/plugins/backdrop-post-types/app/framework.php:19
- > PHP Fatal error
Uncaught Error: Class 'Backdrop\\Core\\ServiceProvider' not found in wp-content/plugins/backdrop-post-types/app/Portfolio/Provider.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Backdrop\\PostTypes\\Portfolio\\add_filter() in wp-content/plugins/backdrop-post-types/app/Portfolio/functions-helpers.php:6
- > PHP Fatal error
Uncaught Error: Class 'Backdrop\\PostTypes\\Contracts\\Types\\Type' not found in wp-content/plugins/backdrop-post-types/app/Portfolio/Component.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function Benlumia007\\Backdrop\\PostTypes\\add_action() in wp-content/plugins/backdrop-post-types/app/functions-setup.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function Backdrop\\PostTypes\\Contracts\\Types\\esc_html__() in wp-content/plugins/backdrop-post-types/app/Contracts/Types/Type.php:116
- > PHP Fatal error
Uncaught Error: Class 'Backdrop\\Proxies\\Proxy' not found in wp-content/plugins/backdrop-post-types/vendor/benlumia007/backdrop/src/Proxies/App.php:22
- > PHP Fatal error
Uncaught Error: Interface 'Backdrop\\Contracts\\Bootable' not found in wp-content/plugins/backdrop-post-types/app/Contracts/Types/Type.php:22
- > PHP Fatal error
Uncaught Error: Class 'Backdrop\\Core\\Container' not found in wp-content/plugins/backdrop-post-types/vendor/benlumia007/backdrop/src/Core/Application.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: post-types
backdrop-post-types/backdrop-post-types.php Passed 13 tests
This is the main PHP file of "Backdrop Post Types" version 2.0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
A simple way to create custom post type of your choice.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,367 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 369 | 1,240 | 1,116 |
JSON | 2 | 0 | 0 | 135 |
Markdown | 3 | 31 | 0 | 116 |
PHP code Passed 2 tests
This is a short overview 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.46 |
Average class complexity | 9.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 23 | 23.47% |
▷ Public methods | 79 | 80.61% |
▷ Protected methods | 17 | 17.35% |
▷ Private methods | 2 | 2.04% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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