Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.21MB] [CPU: ▲12.19ms] Passed 4 tests
An overview of server-side resources used by Custom post types, Custom Fields & more
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.65 ▲1.19 | 49.55 ▲3.10 |
Dashboard /wp-admin | 4.56 ▲1.26 | 66.48 ▲15.26 |
Posts /wp-admin/edit.php | 4.59 ▲1.24 | 63.74 ▲16.08 |
Add New Post /wp-admin/post-new.php | 7.09 ▲1.21 | 107.69 ▲16.03 |
Media Library /wp-admin/upload.php | 4.46 ▲1.23 | 49.75 ▲14.38 |
Tools & Infos /wp-admin/edit.php?post_type=manage_cpt&page=tools | 4.46 | 50.06 |
Templates /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_template | 4.47 | 52.40 |
Field groups /wp-admin/edit.php?post_type=manage_cpt_field | 4.54 | 54.62 |
Taxonomies /wp-admin/edit.php?post_type=manage_cpt_tax | 4.54 | 54.39 |
Post types /wp-admin/edit.php?post_type=manage_cpt | 4.54 | 53.77 |
Admin notices /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_admin_notices | 4.47 | 51.13 |
Admin pages /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_admin_pages | 4.47 | 50.39 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
custom_post_types_installation_time |
custom_post_types_registered_cpt_ids |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
custom_post_types_version |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Custom post types, Custom Fields & more
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,262 ▲475 | 23.99 ▲9.65 | 1.81 ▼0.28 | 31.34 ▼11.96 |
Dashboard /wp-admin | 2,655 ▲475 | 12.34 ▲6.71 | 309.30 ▲218.45 | 57.38 ▲17.79 |
Posts /wp-admin/edit.php | 2,758 ▲658 | 13.57 ▲11.58 | 128.38 ▲89.27 | 45.88 ▲11.13 |
Add New Post /wp-admin/post-new.php | 1,815 ▲286 | 23.40 ▲0.66 | 540.09 ▼144.49 | 26.65 ▼26.33 |
Media Library /wp-admin/upload.php | 1,542 ▲142 | 10.17 ▲5.93 | 161.82 ▲57.19 | 49.16 ▲1.43 |
Tools & Infos /wp-admin/edit.php?post_type=manage_cpt&page=tools | 1,549 | 13.23 | 116.32 | 36.13 |
Templates /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_template | 1,482 | 13.30 | 101.78 | 37.49 |
Field groups /wp-admin/edit.php?post_type=manage_cpt_field | 1,760 | 13.46 | 116.72 | 39.85 |
Taxonomies /wp-admin/edit.php?post_type=manage_cpt_tax | 1,755 | 13.59 | 112.22 | 38.02 |
Post types /wp-admin/edit.php?post_type=manage_cpt | 1,738 | 12.15 | 116.53 | 43.63 |
Admin notices /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_admin_notices | 1,476 | 13.07 | 107.80 | 37.25 |
Admin pages /wp-admin/edit.php?post_type=manage_cpt&page=manage_cpt_admin_pages | 1,479 | 13.13 | 105.29 | 37.33 |
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
- This plugin does not fully uninstall, leaving 9 options in the database
- theysaidso_admin_options
- db_upgraded
- custom_post_types_registered_cpt_ids
- widget_theysaidso_widget
- can_compress_scripts
- custom_post_types_version
- custom_post_types_installation_time
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-post-types/includes/compatibilities/v4.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-post-types/includes/compatibilities/saswp.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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 taxonomies, cpt, custom post types, custom templates, custom fields
custom-post-types/custom-post-types.php 92% from 13 tests
The primary PHP file in "Custom post types, Custom Fields & more" version 5.0.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,815 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 532 | 1,220 | 5,674 |
SVG | 2 | 8 | 0 | 135 |
CSS | 1 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 14 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 15.49 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 39 | |
▷ Abstract classes | 2 | 5.13% |
▷ Concrete classes | 37 | 94.87% |
▷ Final classes | 12 | 32.43% |
Methods | 248 | |
▷ Static methods | 126 | 50.81% |
▷ Public methods | 226 | 91.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 8.87% |
Functions | 121 | |
▷ Named functions | 21 | 17.36% |
▷ Anonymous functions | 100 | 82.64% |
Constants | 25 | |
▷ Global constants | 17 | 68.00% |
▷ Class constants | 8 | 32.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 4.82KB | 2.46KB | ▼ 48.94% |