Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.88ms] Passed 4 tests
An overview of server-side resources used by Short URL
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.97 ▼4.14 |
Dashboard /wp-admin | 3.31 ▲0.00 | 47.71 ▼1.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.32 ▲6.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.39 ▼5.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.57 ▲0.29 |
Server storage [IO: ▲1.79MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 182 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_pluginSL_shorturl |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Short URL
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.23 ▼0.48 | 1.68 ▼0.07 | 44.49 ▲0.99 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▼0.04 | 96.59 ▼6.39 | 42.16 ▼1.91 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.07 | 39.74 ▲3.38 | 36.57 ▲7.29 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 18.48 ▼4.95 | 618.80 ▼15.50 | 53.66 ▲2.33 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.15 ▼0.01 | 94.81 ▼1.32 | 42.25 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method shorturl::uninstall_removedata() should not be called statically
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/shorten-url/core.php
- > /wp-content/plugins/shorten-url/core.class.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(core.php): failed to open stream: No such file or directory in wp-content/plugins/shorten-url/core/templates/my-plugin.php on line 18
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/shorten-url/shorten-url.php:29
- > PHP Fatal error
require_once(): Failed opening required 'core.php' (include_path='.:/usr/share/php') in wp-content/plugins/shorten-url/core/templates/my-plugin.php on line 18
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The synthesis of the short link generated for your post and page), #2 (The configuration page of the plugin)
shorten-url/core.class.php 85% from 13 tests
The primary PHP file in "Short URL" version %s by %s', 'SL_frame... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("shorten-url.php" instead of "core.class.php")
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "%s by %s', 'SL_frame...")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,992 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 44 | 4,608 | 0 | 10,155 |
PHP | 19 | 1,052 | 1,870 | 7,361 |
JavaScript | 6 | 248 | 282 | 891 |
CSS | 11 | 88 | 13 | 470 |
Markdown | 1 | 20 | 0 | 84 |
JSON | 1 | 0 | 0 | 29 |
INI | 2 | 0 | 0 | 2 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 119)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 55.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 211.00 |
Average method complexity | 7.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 119.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 1 | 5.26% |
▷ Concrete classes | 18 | 94.74% |
▷ Final classes | 0 | 0.00% |
Methods | 164 | |
▷ Static methods | 35 | 21.34% |
▷ Public methods | 161 | 98.17% |
▷ Protected methods | 3 | 1.83% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
35 PNG files occupy 0.44MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
core/img/tree_node_minus.png | 0.14KB | 0.12KB | ▼ 15.17% |
core/img/arrow_up.png | 0.24KB | 0.27KB | 0.00% |
core/img/tab_mail.png | 0.66KB | 0.62KB | ▼ 6.63% |
screenshot-1.png | 49.23KB | 17.87KB | ▼ 63.71% |
core/img/progressbar.png | 1.43KB | 1.25KB | ▼ 12.96% |