Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼11.01ms] Passed 4 tests
A check of server-side resources used by Editor Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.46 ▼0.96 |
Dashboard /wp-admin | 3.47 ▲0.12 | 48.78 ▼21.50 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 49.71 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 88.51 ▼22.51 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.93 ▲1.98 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Editor Templates
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.23 ▼0.95 | 4.65 ▲2.70 | 43.80 ▲0.51 |
Dashboard /wp-admin | 2,204 ▲16 | 5.83 ▼0.08 | 100.03 ▼5.54 | 40.03 ▼3.86 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 38.35 ▲2.22 | 33.17 ▲0.78 |
Add New Post /wp-admin/post-new.php | 1,533 ▲13 | 23.45 ▲0.30 | 690.25 ▲3.42 | 57.32 ▼6.13 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.24 ▲0.11 | 103.75 ▼9.36 | 45.06 ▼2.81 |
Editor Templates /wp-admin/editor-templates.php | 26 | 0.44 | 0.10 | 15.37 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function tpl_post_thumbnail() in wp-content/plugins/editor-templates/template-sample/post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/editor-templates/editor-templates.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/editor-templates.php
- > Network (severe)
wp-admin/editor-templates.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Sample edit page - title, category, excerpt, post-thumbnail), #2 (Sample edit page - custom fields), #3 (Sample template source)
editor-templates/editor-templates.php Passed 13 tests
"Editor Templates" version 0.1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
78 characters long description:
投稿タイプ毎に専用の投稿テンプレートを作成できます。
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
Good job! No executable or dangerous file extensions detected985 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 117 | 13 | 699 |
CSS | 3 | 36 | 0 | 160 |
JavaScript | 1 | 18 | 10 | 93 |
PO File | 1 | 6 | 6 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 83.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 5.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/default.png | 1.63KB | 0.70KB | ▼ 57.02% |
screenshot-3.png | 14.17KB | 13.09KB | ▼ 7.60% |
screenshot-1.png | 11.83KB | 10.69KB | ▼ 9.69% |
screenshot-2.png | 12.14KB | 11.08KB | ▼ 8.68% |