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: ▲1.14MB] [CPU: ▲5.56ms] Passed 4 tests
Server-side resources used by Custom Post Type UI
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.63 ▲1.16 | 43.12 ▲3.92 |
Dashboard /wp-admin | 4.47 ▲1.16 | 55.11 ▲8.41 |
Posts /wp-admin/edit.php | 4.52 ▲1.16 | 54.96 ▲5.60 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.12 | 94.60 ▲4.29 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 44.29 ▲8.45 |
Add/Edit Post Types /wp-admin/admin.php?page=cptui_manage_post_types | 4.33 | 45.57 |
Help/Support /wp-admin/admin.php?page=cptui_support | 4.30 | 45.46 |
Add/Edit Taxonomies /wp-admin/admin.php?page=cptui_manage_taxonomies | 4.30 | 38.72 |
About CPT UI /wp-admin/admin.php?page=cptui_main_menu | 4.29 | 40.70 |
Tools /wp-admin/admin.php?page=cptui_tools | 4.30 | 39.12 |
Registered Types/Taxes /wp-admin/admin.php?page=cptui_listings | 4.30 | 38.70 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
cptui_new_install |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Post Type UI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲71 | 14.22 ▼0.13 | 1.59 ▼0.08 | 38.71 ▼1.63 |
Dashboard /wp-admin | 2,238 ▲58 | 5.61 ▼0.02 | 90.16 ▼2.60 | 40.10 ▼3.51 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.10 ▲0.16 | 39.86 ▼0.84 | 36.85 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.22 ▼0.38 | 678.41 ▼29.01 | 57.69 ▲4.50 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.27 ▲0.13 | 97.78 ▼8.84 | 42.55 ▼2.96 |
Add/Edit Post Types /wp-admin/admin.php?page=cptui_manage_post_types | 2,355 | 3.54 | 54.80 | 43.94 |
Help/Support /wp-admin/admin.php?page=cptui_support | 1,771 | 2.60 | 67.17 | 69.81 |
Add/Edit Taxonomies /wp-admin/admin.php?page=cptui_manage_taxonomies | 1,943 | 2.21 | 40.27 | 48.17 |
About CPT UI /wp-admin/admin.php?page=cptui_main_menu | 896 | 2.14 | 23.10 | 46.34 |
Tools /wp-admin/admin.php?page=cptui_tools | 917 | 1.99 | 24.00 | 27.49 |
Registered Types/Taxes /wp-admin/admin.php?page=cptui_listings | 837 | 2.00 | 23.56 | 27.84 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- cptui_new_install
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cptui_manage_post_types
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/custom-post-type-ui/inc/wp-cli.php:17
- > 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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: cpt, types, cms, post, custom post types...
custom-post-type-ui/custom-post-type-ui.php 92% from 13 tests
The principal PHP file in "Custom Post Type UI" v. 1.15.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin7,485 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,109 | 2,477 | 6,772 |
JavaScript | 4 | 1 | 0 | 388 |
CSS | 2 | 43 | 1 | 325 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 30.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 43 | 97.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.27% |
Functions | 126 | |
▷ Named functions | 125 | 99.21% |
▷ Anonymous functions | 1 | 0.79% |
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
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wds_ads/cptui-extended.png | 6.72KB | 7.57KB | 0.00% |
images/cptui-icon-173x173.png | 4.41KB | 1.84KB | ▼ 58.29% |
images/wds_ads/buddypages.png | 4.40KB | 4.94KB | 0.00% |
images/wds_ads/wp-search-with-algolia-pro.png | 26.78KB | 9.17KB | ▼ 65.75% |
images/wds_ads/instago.png | 21.12KB | 22.41KB | 0.00% |