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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼8.00ms] Passed 4 tests
This is a short check of server-side resources used by WPTerm
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.52 ▼2.80 |
Dashboard /wp-admin | 3.48 ▲0.13 | 47.40 ▼9.18 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 49.64 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.17 | 81.82 ▼19.74 |
Media Library /wp-admin/upload.php | 3.41 ▲0.17 | 37.85 ▼0.26 |
WPTerm /wp-admin/tools.php?page=wpterm | 3.37 | 31.33 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
wpterm_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WPTerm
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.22 ▼0.34 | 1.69 ▲0.03 | 35.68 ▼5.89 |
Dashboard /wp-admin | 2,202 ▲25 | 5.68 ▲0.08 | 82.32 ▼6.66 | 37.06 ▼5.86 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.09 | 43.01 ▲6.95 | 38.48 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.24 ▼0.10 | 663.89 ▼28.84 | 55.33 ▼0.34 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.17 ▼0.03 | 106.55 ▲7.45 | 45.11 ▲3.48 |
WPTerm /wp-admin/tools.php?page=wpterm | 1,115 | 2.17 | 36.30 | 31.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=wpterm
- > Notice in wp-content/plugins/wpterm/wpterm.php+729
Undefined index: php-function
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpterm/wpterm-help.php
- > /wp-content/plugins/wpterm/uninstall.php
- > /wp-content/plugins/wpterm/wpterm.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: unix, shell, command, xterm, bash...
wpterm/wpterm.php Passed 13 tests
The primary PHP file in "WPTerm" version 1.1.9 is used by WordPress to initiate all plugin functionality
59 characters long description:
An xterm-like plugin to run non-interactive shell commands.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,747 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 223 | 179 | 917 |
PO File | 1 | 127 | 157 | 424 |
JavaScript | 2 | 67 | 108 | 377 |
CSS | 1 | 1 | 13 | 27 |
HTML | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
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 | 20 | |
▷ Named functions | 20 | 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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pp.png | 1.31KB | 1.25KB | ▼ 4.19% |
images/wpterm-fontplus.png | 1.38KB | 0.74KB | ▼ 46.42% |
images/wpterm-fontminus.png | 1.41KB | 0.76KB | ▼ 45.84% |
images/wpterm-wrap.png | 0.48KB | 0.62KB | 0.00% |