Benchmarks
Plugin footprint 48% 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.21MB] [CPU: ▼322.91ms] Passed 4 tests
An overview of server-side resources used by Simple Post Type
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 52.99 ▲1.54 |
Dashboard /wp-admin | 3.12 ▼0.28 | 20.91 ▼12.76 |
Posts /wp-admin/edit.php | 3.12 ▼0.52 | 19.04 ▼19.72 |
Add New Post /wp-admin/post-new.php | 3.12 ▼3.88 | 17.81 ▼1,251.39 |
Media Library /wp-admin/upload.php | 3.12 ▼0.17 | 16.37 ▼7.75 |
Post Types /wp-admin/edit.php?post_type=spt | 3.12 | 18.48 |
Add ons /wp-admin/edit.php?post_type=spt_add_ons | 3.12 | 16.18 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_simple_post_type |
New WordPress options |
---|
spt_version |
Browser metrics Passed 4 tests
Simple Post Type: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲112 | 15.79 ▲0.19 | 6.64 ▼0.27 | 2.61 ▲0.03 |
Dashboard /wp-admin | 2,927 ▲66 | 6.11 ▼0.04 | 116.63 ▼16.51 | 155.15 ▼5.28 |
Posts /wp-admin/edit.php | 2,723 ▲29 | 3.23 ▼0.00 | 67.43 ▲4.44 | 143.38 ▲6.42 |
Add New Post /wp-admin/post-new.php | 1,783 ▲66 | 17.45 ▼3.64 | 421.27 ▼41.98 | 160.32 ▲6.34 |
Media Library /wp-admin/upload.php | 1,733 ▲32 | 5.54 ▲0.01 | 138.31 ▼5.48 | 180.59 ▼0.18 |
Post Types /wp-admin/edit.php?post_type=spt | 1,403 | 2.91 | 59.99 | 115.88 |
Add ons /wp-admin/edit.php?post_type=spt_add_ons | 28 | 0.94 | 0.04 | 17.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User deprecated in wp-includes/functions.php+5316
add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- The uninstall procedure failed, leaving 1 table in the database
- wp_simple_post_type
- This plugin does not fully uninstall, leaving 1 option in the database
- spt_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=spt_add_ons
- > User deprecated in wp-includes/functions.php+5316
add_utility_page is deprecated since version 4.5.0! Use add_menu_page() instead.
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-post-type/simple-post-type.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/edit.php?post_type=spt_add_ons
- > Network (severe)
wp-admin/edit.php?post_type=spt_add_ons - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: custom post type plugin, posts type, post type, add new post type, custom post type...
simple-post-type/simple-post-type.php Passed 13 tests
This is the main PHP file of "Simple Post Type" version 1.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
23 characters long description:
Create custom post type
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin443 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 80 | 25 | 352 |
PO File | 1 | 37 | 0 | 91 |
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.16 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected