63% long-url-maker

Code Review | LONG URL MAKER

WordPress plugin LONG URL MAKER scored 63% from 54 tests.

About plugin

  • Plugin page: long-url-maker
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.3
  • WordPress version: 6.3.1
  • First release: Jul 28, 2015
  • Latest release: Jul 31, 2015
  • Number of updates: 7
  • Update frequency: every 0.6 days
  • Top authors: kpcode (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active / 19,776 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.30 ▼0.1623.04 ▼20.97
Dashboard /wp-admin2.99 ▼0.3223.18 ▼26.64
Posts /wp-admin/edit.php2.99 ▼0.3725.34 ▼26.44
Add New Post /wp-admin/post-new.php2.99 ▼2.9025.65 ▼85.57
Media Library /wp-admin/upload.php2.99 ▼0.2422.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼0.684.31 ▲2.4242.03 ▼1.39
Dashboard /wp-admin2,206 ▲185.83 ▲0.9298.50 ▼16.2239.90 ▼5.94
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0240.49 ▲1.2134.92 ▼4.23
Add New Post /wp-admin/post-new.php1,543 ▲3018.40 ▲0.82622.87 ▼38.0851.17 ▼4.33
Media Library /wp-admin/upload.php1,391 ▲64.16 ▼0.03118.56 ▲19.4945.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

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
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP122439324

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 code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-1.png27.33KB12.22KB▼ 55.29%