Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.75MB] [CPU: ▼7.77ms] Passed 4 tests
Server-side resources used by Easy Post Types and Fields
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 39.11 ▼5.26 |
Dashboard /wp-admin | 4.20 ▲0.86 | 54.22 ▼9.37 |
Posts /wp-admin/edit.php | 4.30 ▲0.94 | 66.45 ▲17.88 |
Add New Post /wp-admin/post-new.php | 6.76 ▲0.87 | 94.44 ▼34.31 |
Media Library /wp-admin/upload.php | 4.17 ▲0.93 | 59.43 ▲26.28 |
Manage /wp-admin/admin.php?page=ept_post_types | 4.33 | 135.89 |
Protect /wp-admin/admin.php?page=ept_post_types-promo-protect | 4.11 | 47.76 |
Display /wp-admin/admin.php?page=ept_post_types-promo-display | 4.11 | 47.44 |
Server storage [IO: ▲3.74MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 154 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Post Types and Fields
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲94 | 14.16 ▼0.55 | 1.69 ▼0.32 | 42.55 ▼2.26 |
Dashboard /wp-admin | 2,271 ▲91 | 5.52 ▼0.13 | 93.68 ▲7.62 | 70.55 ▲30.67 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.03 ▲0.06 | 39.57 ▲1.42 | 34.10 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,556 ▲25 | 23.28 ▲0.01 | 658.77 ▲32.67 | 63.05 ▲10.16 |
Media Library /wp-admin/upload.php | 1,434 ▲40 | 4.24 ▲0.01 | 109.18 ▲14.99 | 47.64 ▲5.15 |
Manage /wp-admin/admin.php?page=ept_post_types | 950 | 1.70 | 25.42 | 36.97 |
Protect /wp-admin/admin.php?page=ept_post_types-promo-protect | 903 | 1.70 | 23.48 | 28.44 |
Display /wp-admin/admin.php?page=ept_post_types-promo-display | 906 | 1.82 | 26.55 | 27.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 items
- 52× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Setup_Wizard\\Interfaces\\Pluggable' not found in wp-content/plugins/easy-post-types-fields/dependencies/barn2/setup-wizard/src/Step.php:16
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Setup_Wizard\\Starter' not found in wp-content/plugins/easy-post-types-fields/src/Admin/Wizard/Starter.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Post_Types\\Post_Type_Interface' not found in wp-content/plugins/easy-post-types-fields/src/Post_Types/Abstract_Post_Type.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Lib\\Plugin\\Plugin' not found in wp-content/plugins/easy-post-types-fields/dependencies/barn2/barn2-lib/src/Plugin/Simple_Plugin.php:19
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Post_Types\\Default_Post_Type' not found in wp-content/plugins/easy-post-types-fields/src/Post_Types/Attachment_Post_Type.php:12
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Setup_Wizard\\Setup_Wizard' not found in wp-content/plugins/easy-post-types-fields/src/Admin/Wizard/Wizard.php:19
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Setup_Wizard\\Step' not found in wp-content/plugins/easy-post-types-fields/dependencies/barn2/setup-wizard/src/Steps/Welcome_Free.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/easy-post-types-fields/src/Admin/List_Tables/Taxonomy_List_Table.php:19
- > PHP Fatal error
Uncaught Error: Class 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\WPTRT\\AdminNotices\otices' not found in wp-content/plugins/easy-post-types-fields/dependencies/barn2/barn2-lib/src/Admin/Notices.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Barn2\\Plugin\\Easy_Post_Types_Fields\\Dependencies\\Lib\\Registerable' not found in wp-content/plugins/easy-post-types-fields/dependencies/barn2/barn2-lib/src/Plugin/License/Admin/License_Notices.php:17
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ept_post_types-promo-display
- > Network (severe)
wp-content/plugins/easy-post-types-fields//assets/images/review.png%22 - Failed to load resource: the server responded with a status of 404 (Not Found)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ept_post_types-promo-display
- > Network (severe)
wp-content/plugins/easy-post-types-fields/lib/assets/js/jquery-tiptip/jquery.tipTip.min.js?ver=1.1.8 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
easy-post-types-fields/easy-post-types-fields.php Passed 13 tests
The principal PHP file in "Easy Post Types and Fields" v. 1.1.8 is loaded by WordPress automatically on each request
48 characters long description:
Create custom post types, fields and taxonomies.
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
There were no executable files found in this plugin12,715 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 115 | 1,119 | 4,992 | 8,333 |
CSS | 9 | 152 | 118 | 3,754 |
JavaScript | 13 | 82 | 67 | 555 |
JSON | 4 | 0 | 0 | 73 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.16 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 24 | |
Interfaces | 20 | |
Traits | 2 | |
Classes | 70 | |
▷ Abstract classes | 6 | 8.57% |
▷ Concrete classes | 64 | 91.43% |
▷ Final classes | 1 | 1.56% |
Methods | 692 | |
▷ Static methods | 123 | 17.77% |
▷ Public methods | 587 | 84.83% |
▷ Protected methods | 47 | 6.79% |
▷ Private methods | 58 | 8.38% |
Functions | 42 | |
▷ Named functions | 5 | 11.90% |
▷ Anonymous functions | 37 | 88.10% |
Constants | 22 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 22 | 100.00% |
▷ Public constants | 22 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/promo-display.png | 97.17KB | 34.29KB | ▼ 64.71% |
assets/images/promo-protect.png | 118.13KB | 44.77KB | ▼ 62.10% |
assets/images/review.png | 16.86KB | 6.58KB | ▼ 60.97% |