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.11MB] [CPU: ▼5.71ms] Passed 4 tests
Analyzing server-side resources used by WD Post Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 41.11 ▼3.78 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.88 ▼13.98 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 50.37 ▼0.06 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.51 ▼2.68 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.43 ▼2.39 |
All Meta /wp-admin/edit.php?post_type=wdpt_meta | 3.37 | 38.36 |
Add New /wp-admin/post-new.php?post_type=wdpt_types | 3.39 | 47.88 |
All Types /wp-admin/edit.php?post_type=wdpt_types | 3.37 | 37.34 |
Shortcodes /wp-admin/edit.php?post_type=wdpt_types&page=wdpt_shortcode | 3.30 | 31.91 |
All Taxonomies /wp-admin/edit.php?post_type=wdpt_taxonomies | 3.37 | 37.54 |
All Groups /wp-admin/edit.php?post_type=wdpt_group | 3.37 | 37.35 |
All Templates /wp-admin/edit.php?post_type=wdpt-templates | 3.37 | 34.99 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for WD Post Types
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲127 | 13.29 ▼1.06 | 1.77 ▲0.03 | 42.02 ▼4.78 |
Dashboard /wp-admin | 2,276 ▲96 | 5.83 ▲0.15 | 92.08 ▼8.14 | 39.26 ▼7.31 |
Posts /wp-admin/edit.php | 2,189 ▲89 | 2.32 ▲0.31 | 38.03 ▲4.30 | 34.26 ▼0.56 |
Add New Post /wp-admin/post-new.php | 1,596 ▲68 | 23.18 ▲0.01 | 641.55 ▼25.20 | 33.70 ▼21.72 |
Media Library /wp-admin/upload.php | 1,487 ▲84 | 4.58 ▲0.40 | 102.93 ▲4.78 | 44.14 ▼5.07 |
All Meta /wp-admin/edit.php?post_type=wdpt_meta | 1,153 | 2.26 | 34.08 | 29.49 |
Add New /wp-admin/post-new.php?post_type=wdpt_types | 2,468 | 3.30 | 60.73 | 37.85 |
All Types /wp-admin/edit.php?post_type=wdpt_types | 1,153 | 2.21 | 38.43 | 29.38 |
Shortcodes /wp-admin/edit.php?post_type=wdpt_types&page=wdpt_shortcode | 863 | 2.00 | 34.92 | 22.89 |
All Taxonomies /wp-admin/edit.php?post_type=wdpt_taxonomies | 1,150 | 2.24 | 32.87 | 29.94 |
All Groups /wp-admin/edit.php?post_type=wdpt_group | 1,147 | 2.24 | 33.74 | 28.83 |
All Templates /wp-admin/edit.php?post_type=wdpt-templates | 1,150 | 2.25 | 33.91 | 29.30 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
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 | 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
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/classes/wd-taxonomy.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wd-post-types/inc/pro/templates/shortcode/meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wd-post-types/inc/pro/wd-shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wd-post-types/inc/classes/wd-types.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/classes/wd-group.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/classes/wd-post.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/pro/wd-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wd-post-types/inc/templates/custom-template.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wd-post-types/inc/classes/wd-meta.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=wdpt-templates
- > Network (severe)
wp-content/plugins/wd-post-types/inc/classes/my-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: custom meta, post type, post taxonomy, post meta, custom taxonomy...
wd-post-types/index.php 77% from 13 tests
The main PHP script in "WD Post Types" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Please keep the plugin description shorter than 140 characters (currently 214 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wd-post-types.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected2,427 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 64 | 94 | 2,427 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 42.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 133.00 |
Average method complexity | 7.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 50.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 62 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 98.39% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.61% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin