Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼140.87ms] Passed 4 tests
Analyzing server-side resources used by Custom Post Type Page Template
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 37.87 ▲9.66 |
Dashboard /wp-admin | 3.09 ▲0.04 | 49.47 ▲3.74 |
Posts /wp-admin/edit.php | 3.14 ▲0.04 | 44.90 ▼4.19 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 105.66 ▼559.06 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 36.36 ▼3.95 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Custom Post Type Page Template
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,694 ▲98 | 15.81 ▲0.41 | 8.28 ▲0.37 | 54.51 ▲5.76 |
Dashboard /wp-admin | 2,972 ▲38 | 5.88 ▼0.13 | 160.55 ▲7.18 | 115.45 ▼8.65 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.01 | 67.05 ▼2.00 | 103.44 ▲8.26 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.71 ▼0.09 | 380.10 ▼9.45 | 114.30 ▼4.55 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.02 ▲0.01 | 153.72 ▲1.16 | 123.48 ▼6.43 |
Custom Post Type Page Template /wp-admin/custom-post-type-page-template.php | 26 | 0.90 | 0.75 | 9.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-page-template/custom-post-type-page-template.php:33
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/custom-post-type-page-template.php
- > Network (severe)
wp-admin/custom-post-type-page-template.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Custom Post Type Page Template - Settings), #2 (Custom Post Type Page Template - Page Template Box)
custom-post-type-page-template/custom-post-type-page-template.php 85% from 13 tests
The main file in "Custom Post Type Page Template" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
- Domain Path: Prefix the domain path with a forward slash character ("//")
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
Everything looks great! No dangerous files found in this plugin200 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 23 | 143 |
PO File | 1 | 1,325 | 2,848 | 57 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 6.95KB | 5.92KB | ▼ 14.88% |
screenshot-2.png | 3.98KB | 3.14KB | ▼ 21.04% |