Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼1.93MB] [CPU: ▼54.18ms] Passed 4 tests
This is a short check of server-side resources used by Find Pages By Template
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 4.80 ▼38.72 |
Dashboard /wp-admin | 2.07 ▼1.23 | 6.62 ▼43.95 |
Posts /wp-admin/edit.php | 2.07 ▼1.28 | 6.20 ▼41.06 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.81 | 5.94 ▼92.97 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 6.05 ▼27.05 |
Find Pages By Template /wp-admin/tools.php?page=find-pages-by-template | 2.07 | 5.58 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Find Pages By Template
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲53 | 13.25 ▼1.11 | 1.65 ▼0.51 | 47.74 ▲2.79 |
Dashboard /wp-admin | 2,209 ▲18 | 5.79 ▼0.10 | 97.13 ▼6.53 | 38.58 ▼1.58 |
Posts /wp-admin/edit.php | 2,095 ▲24 | 2.01 ▲0.00 | 39.26 ▲1.23 | 35.27 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,519 ▼0 | 17.54 ▼5.59 | 666.76 ▲6.33 | 65.08 ▲13.84 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.25 ▲0.07 | 109.54 ▼3.95 | 47.94 ▼0.85 |
Find Pages By Template /wp-admin/tools.php?page=find-pages-by-template | 763 | 2.05 | 27.15 | 28.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fpbt handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=find-pages-by-template
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the fpbt handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/tools.php?page=find-pages-by-template
- > Notice in wp-content/plugins/find-pages-by-template/find-pages-by-template.php+49
Undefined index: fpbt_submit
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=find-pages-by-template
- > Notice in wp-content/plugins/find-pages-by-template/fpbt_admin.php+56
Undefined variable: pages
- > GET request to /wp-admin/tools.php?page=find-pages-by-template
- > Notice in wp-content/plugins/find-pages-by-template/fpbt_admin.php+56
Undefined variable: template_title
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/find-pages-by-template/fpbt_admin.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: template_title in wp-content/plugins/find-pages-by-template/fpbt_admin.php on line 56
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/find-pages-by-template/find-pages-by-template.php:21
- > PHP Notice
Undefined variable: pages in wp-content/plugins/find-pages-by-template/fpbt_admin.php on line 32
- > PHP Notice
Undefined variable: templates in wp-content/plugins/find-pages-by-template/fpbt_admin.php on line 10
- > PHP Notice
Undefined variable: pages in wp-content/plugins/find-pages-by-template/fpbt_admin.php on line 56
- > PHP Notice
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 errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: templates, pages
find-pages-by-template/find-pages-by-template.php Passed 13 tests
The main PHP file in "Find Pages By Template" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Tiny plugin which provides a tool to find which pages are using a specific template
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
There were no executable files found in this plugin151 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 32 | 101 |
CSS | 1 | 16 | 10 | 50 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 5 | 100.00% |
▷ Public methods | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin