Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.70ms] Passed 4 tests
An overview of server-side resources used by Post Templator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.28 ▼5.52 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.89 ▲1.90 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.40 ▼2.19 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 88.12 ▼4.99 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.30 ▲3.40 |
テンプレート /wp-admin/edit.php?post_type=template | 3.36 | 38.83 |
新規テンプレート登録 /wp-admin/post-new.php?post_type=template | 5.98 | 77.81 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Post Templator: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 14.24 ▼0.05 | 1.86 ▼0.59 | 43.57 ▼0.62 |
Dashboard /wp-admin | 2,225 ▲45 | 5.59 ▼0.06 | 86.16 ▼19.88 | 49.27 ▲1.59 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 2.01 ▲0.03 | 37.09 ▼1.07 | 43.25 ▲5.61 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.00 ▼0.16 | 649.64 ▼27.95 | 63.20 ▲7.64 |
Media Library /wp-admin/upload.php | 1,430 ▲27 | 4.17 ▼0.07 | 95.86 ▼6.96 | 48.70 ▲1.12 |
テンプレート /wp-admin/edit.php?post_type=template | 1,647 | 2.00 | 34.53 | 64.89 |
新規テンプレート登録 /wp-admin/post-new.php?post_type=template | 6,256 | 19.15 | 886.70 | 64.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: template, new post
post-templator/post-templator.php Passed 13 tests
The primary PHP file in "Post Templator" version 1.0.0 is used by WordPress to initiate all plugin functionality
63 characters long description:
シンプルなテンプレートによる投稿作成機能。
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
Success! There were no dangerous files found in this plugin171 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 30 | 171 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin