Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.29ms] Passed 4 tests
Analyzing server-side resources used by Custom Page Templates Setup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 41.76 ▼0.40 |
Dashboard /wp-admin | 3.35 ▼0.00 | 48.97 ▼15.97 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.85 ▼1.43 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.46 ▼19.35 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 42.92 ▲3.17 |
Custom Templates /wp-admin/themes.php?page=custom-page-templates | 3.38 | 36.13 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Page Templates Setup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.35 ▲0.45 | 1.53 ▼0.60 | 41.51 ▼2.01 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▼0.04 | 90.64 ▼0.73 | 39.63 ▼1.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.01 | 34.55 ▼2.64 | 30.08 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.60 ▲0.49 | 691.57 ▲32.20 | 62.23 ▼2.48 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.34 ▲0.17 | 102.00 ▼1.10 | 47.18 ▲2.78 |
Custom Templates /wp-admin/themes.php?page=custom-page-templates | 873 | 1.99 | 23.38 | 52.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=custom-page-templates
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
- 3× 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/custom-page-templates-setup/main.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-page-templates-setup/cpt_options.php:21
- > PHP Fatal error
Uncaught Error: Class 'cpt_functions' not found in wp-content/plugins/custom-page-templates-setup/cpt_page_templater.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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
Attributes that require attention:
- Screenshots: Please a description for screenshot #2 in custom-page-templates-setup/assets to your readme.txt
custom-page-templates-setup/main.php 92% from 13 tests
The main file in "Custom Page Templates Setup" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-page-templates-setup.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected642 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 0 | 5 | 359 |
PHP | 4 | 80 | 52 | 283 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 7.51KB | 4.11KB | ▼ 45.26% |