Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.08ms] Passed 4 tests
This is a short check of server-side resources used by WP Post Templates for WP Sheet Editor
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.52 ▼1.78 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.74 ▲2.51 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.57 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.72 ▼6.82 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.83 ▲1.19 |
Server storage [IO: ▲0.08MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Templates for WP Sheet Editor
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.15 ▼1.24 | 1.75 ▼0.31 | 43.08 ▼1.74 |
Dashboard /wp-admin | 2,206 ▲21 | 5.94 ▲1.04 | 100.29 ▼15.10 | 41.46 ▲0.25 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 38.44 ▲1.00 | 34.50 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.39 ▼0.09 | 678.34 ▼13.88 | 58.05 ▲4.19 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.15 ▲0.00 | 105.62 ▼9.14 | 48.29 ▲1.42 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Please fix the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sheet-editor-post-templates/posts-templates.php:228
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-sheet-editor-post-templates/views/welcome-page-content.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-sheet-editor-post-templates/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/wp-sheet-editor-post-templates/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: admin, spreadsheet, posts management, bulk edit, pages...
wp-sheet-editor-post-templates/posts-templates.php 92% from 13 tests
Analyzing the main PHP file in "WP Post Templates for WP Sheet Editor" version 1.0.1
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-sheet-editor-post-templates.php" instead of "posts-templates.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin456 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 108 | 51 | 408 |
CSS | 1 | 6 | 0 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 22 | 95.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.35% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/imgs/logo-248x102.png | 14.09KB | 5.48KB | ▼ 61.08% |
assets/imgs/icon-20x20.png | 45.33KB | 0.51KB | ▼ 98.88% |