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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.31ms] Passed 4 tests
An overview of server-side resources used by Block Templates by PithyWP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 50.03 ▲7.99 |
Dashboard /wp-admin | 3.41 ▲0.06 | 51.96 ▲1.19 |
Posts /wp-admin/edit.php | 3.52 ▲0.12 | 53.12 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 90.01 ▼18.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.06 | 39.34 ▲2.79 |
Templates /wp-admin/themes.php?page=pithywp-templates | 3.30 | 34.42 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Block Templates by PithyWP
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,784 ▼2 | 14.36 ▲0.00 | 1.90 ▼0.26 | 43.40 ▼0.36 |
Dashboard /wp-admin | 2,185 ▲8 | 5.56 ▼0.04 | 94.35 ▲4.64 | 79.18 ▲37.98 |
Posts /wp-admin/edit.php | 2,105 ▲5 | 2.00 ▲0.00 | 37.50 ▼1.48 | 36.16 ▼4.80 |
Add New Post /wp-admin/post-new.php | 1,555 ▲21 | 18.39 ▲0.28 | 653.92 ▲25.72 | 58.12 ▼18.93 |
Media Library /wp-admin/upload.php | 1,402 ▼1 | 4.35 ▲0.15 | 97.57 ▼4.69 | 64.68 ▲17.85 |
Templates /wp-admin/themes.php?page=pithywp-templates | 1,182 | 3.18 | 60.00 | 28.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/themes.php?page=pithywp-templates
- > Network (severe)
https://pithywp.ir/wp-json/pithywp/v1/templates/?page=1 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: block, page, template, design, elementor
pithywp-templates/plugin.php 92% from 13 tests
"Block Templates by PithyWP" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("pithywp-templates.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin11,039 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,509 | 2,087 | 10,648 |
PHP | 1 | 63 | 203 | 316 |
CSS | 2 | 16 | 0 | 75 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 15 | 78.95% |
▷ Protected methods | 2 | 10.53% |
▷ Private methods | 2 | 10.53% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin