Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼108.71ms] Passed 4 tests
Server-side resources used by Easy Custom Post Type UI
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.80 ▼1.43 |
Dashboard /wp-admin | 3.32 ▼0.06 | 43.96 ▼431.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 44.60 ▼2.00 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 91.47 ▲7.07 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.80 ▲0.55 |
CPT /wp-admin/admin.php?page=c-p-t | 3.47 | 31.84 |
Taxonomies /wp-admin/admin.php?page=c-p-t-taxonomies | 3.31 | 31.76 |
Server storage [IO: ▲1.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Custom Post Type UI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.56 ▼0.86 | 1.64 ▼0.13 | 41.26 ▼3.33 |
Dashboard /wp-admin | 2,233 ▲65 | 4.86 ▼0.95 | 109.80 ▲4.95 | 39.20 ▼1.88 |
Posts /wp-admin/edit.php | 2,119 ▲27 | 2.02 ▲0.05 | 39.73 ▼2.28 | 34.45 ▲3.33 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.36 ▲0.19 | 590.40 ▼69.09 | 58.65 ▲2.24 |
Media Library /wp-admin/upload.php | 1,418 ▲27 | 4.20 ▲0.00 | 92.08 ▼15.07 | 42.59 ▼2.90 |
CPT /wp-admin/admin.php?page=c-p-t | 1,839 | 1.74 | 28.77 | 67.06 |
Taxonomies /wp-admin/admin.php?page=c-p-t-taxonomies | 1,244 | 1.85 | 27.53 | 33.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- 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
Everything seems fine, however this is by no means 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
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-post-type-ui/admin/partials/taxonomies-update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-post-type-ui/admin/partials/taxonomies.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-post-type-ui/admin/partials/post-type-update.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-custom-post-type-ui/admin/class-easy-custom-post-type-ui-admin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-custom-post-type-ui/admin/partials/post-type.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: custom post types, post, types, cpt, cms
easy-custom-post-type-ui/easy-custom-post-type-ui.php Passed 13 tests
The main PHP file in "Easy Custom Post Type UI" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
Easy Custom Post Type UI offers a simple-to-use interface for creating and maintaining taxonomies and custom post types for your website.
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
Success! There were no dangerous files found in this plugin5,163 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 1,516 | 35 | 3,425 |
PHP | 13 | 215 | 431 | 1,327 |
JavaScript | 2 | 20 | 14 | 411 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.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 | 20 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected