Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.07ms] Passed 4 tests
A check of server-side resources used by Thailand Retirement Calculator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.04 ▼3.01 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.22 ▼4.44 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.53 ▲1.26 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 78.36 ▼25.20 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.24 ▲0.37 |
Thai Retirement Visa /wp-admin/options-general.php?page=retirethailand-control-menu | 3.23 | 27.29 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: 3 new tables, 26 new options
New tables |
---|
wp_retirethailand_requests |
wp_retirethailand_newsletter |
wp_retirethailand_exchange |
New WordPress options |
---|
tr-title-newsletter |
db_upgraded |
tr-css-head |
tr-css-border-style |
theysaidso_admin_options |
tr-button-newsletter |
tr-confirm-newsletter |
tr-css-border-color |
tr-css-bg |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Thailand Retirement Calculator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 13.80 ▼0.50 | 5.43 ▲3.58 | 39.97 ▼5.22 |
Dashboard /wp-admin | 2,227 ▲45 | 5.00 ▲0.09 | 117.31 ▼15.44 | 41.04 ▼6.88 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.27 ▲0.27 | 36.08 ▲2.17 | 32.58 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 23.41 ▲5.88 | 663.77 ▼16.16 | 36.61 ▼18.23 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.40 ▲0.19 | 96.07 ▼4.71 | 41.29 ▼4.71 |
Thai Retirement Visa /wp-admin/options-general.php?page=retirethailand-control-menu | 1,623 | 2.63 | 63.65 | 32.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_retirethailand_requests
- wp_retirethailand_newsletter
- wp_retirethailand_exchange
- Zombie WordPress options detected upon uninstall: 26 options
- tr-button-newsletter
- tr-tracking-other
- tr-title-newsletter
- widget_recent-posts
- widget_theysaidso_widget
- widget_retirethailand_widget
- tr-css-border-style
- tr-css-head
- tr-css-color
- tr-css-bg
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/thai-retirement-income-calculator/includes/class-retirethailand-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/thai-retirement-income-calculator/includes/class-retirethailand-phrase-table.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: Add an image for screenshot #1 (Plugin layout with all options enabled.)
thai-retirement-income-calculator/retirethailand.php 85% from 13 tests
"Thailand Retirement Calculator" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "4.0")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thai-retirement-income-calculator.php" instead of "retirethailand.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin997 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 135 | 150 | 997 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 11 | |
▷ Named functions | 11 | 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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 7.88KB | 3.76KB | ▼ 52.26% |
assets/screenshot-1.png | 28.91KB | 11.12KB | ▼ 61.53% |