Benchmarks
Plugin footprint Passed 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: ▲0.00MB] [CPU: ▼150.02ms] Passed 4 tests
A check of server-side resources used by Add custom page template
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 22.94 ▲0.29 |
Dashboard /wp-admin | 3.07 ▲0.01 | 44.29 ▲0.59 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 30.91 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 69.39 ▼600.64 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 21.99 ▼0.21 |
Theme Templates /wp-admin/admin.php?page=add-custom-template | 3.01 | 19.65 |
Add Template /wp-admin/admin.php?page=addnew_template | 2.98 | 19.16 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add custom page template
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,700 ▲99 | 15.88 ▼0.13 | 4.79 ▼0.18 | 76.70 ▼0.79 |
Dashboard /wp-admin | 2,964 ▲71 | 6.13 ▼0.03 | 116.70 ▼12.48 | 171.60 ▼5.81 |
Posts /wp-admin/edit.php | 2,772 ▲66 | 3.24 ▲0.01 | 62.92 ▼0.11 | 141.79 ▼2.56 |
Add New Post /wp-admin/post-new.php | 3,837 ▲22 | 18.86 ▼0.42 | 431.56 ▼7.67 | 169.45 ▲9.06 |
Media Library /wp-admin/upload.php | 1,787 ▲35 | 5.50 ▲0.00 | 164.22 ▲18.46 | 190.15 ▼0.99 |
Theme Templates /wp-admin/admin.php?page=add-custom-template | 1,094 | 2.41 | 53.08 | 99.90 |
Add Template /wp-admin/admin.php?page=addnew_template | 1,090 | 2.36 | 52.93 | 111.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-custom-page-template/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
add-custom-page-template/index.php 92% from 13 tests
This is the main PHP file of "Add custom page template" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-custom-page-template.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin130 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 26 | 130 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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
There are no PNG files in this plugin