Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Error in wp-content/plugins/pp-thai-url/pp_thai_url.php+21
Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/pp-thai-url/pp_thai_url.php:21
Stack trace:
#0 wp-content/plugins/pp-thai-url/pp_thai_url.php(12): pp_set_db()
#1 wp-includes/class-wp-hook.php(310): pp_full_url_activation()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.98ms] Passed 4 tests
Server-side resources used by PP Auto Thai URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.03 ▼6.75 |
Dashboard /wp-admin | 3.31 ▲0.00 | 54.28 ▼2.81 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 55.21 ▲4.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.79 ▼4.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.27 ▼1.71 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by PP Auto Thai URL
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.69 ▲0.41 | 2.31 ▲0.43 | 42.71 ▼2.08 |
Dashboard /wp-admin | 2,195 ▲27 | 5.63 ▼0.00 | 87.55 ▼4.25 | 41.09 ▼3.06 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.02 ▲0.01 | 40.52 ▲3.33 | 36.28 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.15 ▼0.09 | 651.75 ▼26.57 | 54.72 ▲1.51 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▼0.01 | 98.62 ▼1.44 | 49.17 ▲6.68 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pp-thai-url/pp_thai_url.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (URL ในเว็บเราจะเปลี่ยนไปทันตาเห็น), #2 (ที่ Google ก็จะเปลี่ยนไปด้วย แต่อาจจะต้อใช้เวลาซักหน่อย)
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== pp-thai-url ===
)
pp-thai-url/pp_thai_url.php 85% from 13 tests
"PP Auto Thai URL" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pp-thai-url.php" instead of "pp_thai_url.php")
- Description: Keep the plugin description shorter than 140 characters (currently 256 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin168 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 32 | 18 | 168 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 7 | |
▷ Named functions | 7 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 67.40KB | 21.38KB | ▼ 68.28% |
screenshot-1.png | 64.67KB | 21.01KB | ▼ 67.51% |