Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼0.18ms] Passed 4 tests
This is a short check of server-side resources used by JotUrl Link Shortener
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.76 ▼0.41 |
Dashboard /wp-admin | 3.64 ▲0.34 | 59.46 ▼1.42 |
Posts /wp-admin/edit.php | 3.69 ▲0.34 | 56.08 ▲6.07 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 94.57 ▼2.40 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 41.54 ▲3.50 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for JotUrl Link Shortener
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 13.55 ▼1.00 | 1.80 ▲0.12 | 44.65 ▼2.74 |
Dashboard /wp-admin | 2,246 ▲69 | 5.15 ▼0.52 | 94.60 ▼3.85 | 39.38 ▼2.93 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.32 ▲0.35 | 41.78 ▲2.34 | 34.15 ▼1.44 |
Add New Post /wp-admin/post-new.php | 1,577 ▲49 | 23.67 ▲0.56 | 689.89 ▲32.09 | 38.67 ▼13.83 |
Media Library /wp-admin/upload.php | 1,451 ▲48 | 4.75 ▲0.56 | 126.22 ▲18.72 | 48.93 ▲4.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/joturl-link-shortener/joturl.php:28
- > PHP Fatal error
Uncaught Error: Class 'JotUrl' not found in wp-content/plugins/joturl-link-shortener/pages/joturl-options.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
Attributes that require attention:
- Tags: You are using too many tags: 56 tag instead of maximum 10
joturl-link-shortener/joturl.php 92% from 13 tests
The main PHP file in "JotUrl Link Shortener" ver. 0.1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("joturl-link-shortener.php" instead of "joturl.php")
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
No dangerous file extensions were detected1,925 lines of code in 78 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 305 | 112 | 1,260 |
JavaScript | 61 | 3 | 130 | 601 |
HTML | 1 | 3 | 0 | 31 |
SVG | 1 | 0 | 0 | 26 |
CSS | 7 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 32.83 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.79 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 70 | 85.37% |
▷ Public methods | 80 | 97.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.44% |
Functions | 13 | |
▷ Named functions | 2 | 15.38% |
▷ Anonymous functions | 11 | 84.62% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected