Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.96MB] [CPU: ▼39.91ms] Passed 4 tests
Analyzing server-side resources used by LONG URL MAKER
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.30 ▼0.16 | 23.04 ▼20.97 |
Dashboard /wp-admin | 2.99 ▼0.32 | 23.18 ▼26.64 |
Posts /wp-admin/edit.php | 2.99 ▼0.37 | 25.34 ▼26.44 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.90 | 25.65 ▼85.57 |
Media Library /wp-admin/upload.php | 2.99 ▼0.24 | 22.32 ▼11.55 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_kpcode_url_posts |
New WordPress options |
---|
kpcode_version_wp |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
kpcode_longurlmaker_version |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LONG URL MAKER
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.72 ▼0.68 | 4.31 ▲2.42 | 42.03 ▼1.39 |
Dashboard /wp-admin | 2,206 ▲18 | 5.83 ▲0.92 | 98.50 ▼16.22 | 39.90 ▼5.94 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 40.49 ▲1.21 | 34.92 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,543 ▲30 | 18.40 ▲0.82 | 622.87 ▼38.08 | 51.17 ▼4.33 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.03 | 118.56 ▲19.49 | 45.36 ▲0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/long-url-maker/long_url_maker.php+335
Undefined variable: context
- Zombie tables were found after uninstall: 1 table
- wp_kpcode_url_posts
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- kpcode_longurlmaker_version
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- kpcode_version_wp
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/long-url-maker/long_url_maker.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Screenshot #1 (เปลี่ยน url ให้สามารถใช้ความยาวได้เพิ่มขึ้น อย่างสมบูรณ์แบบ) image not found
long-url-maker/long_url_maker.php 85% from 13 tests
The main PHP script in "LONG URL MAKER" version 2.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("long-url-maker.php" instead of "long_url_maker.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin324 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 224 | 39 | 324 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 13 | |
▷ Named functions | 13 | 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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 27.33KB | 12.22KB | ▼ 55.29% |