Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.61MB] [CPU: ▲1.49ms] Passed 4 tests
Analyzing server-side resources used by URL Shortener by MyThemeShop
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 49.09 ▲10.49 |
Dashboard /wp-admin | 3.93 ▲0.63 | 53.34 ▲8.20 |
Posts /wp-admin/edit.php | 3.99 ▲0.62 | 56.38 ▲9.03 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.58 | 85.67 ▼15.10 |
Media Library /wp-admin/upload.php | 3.85 ▲0.62 | 39.71 ▲3.84 |
Edit Link /wp-admin/admin.php?page=url_shortener_edit | 3.85 | 39.36 |
Add Link /wp-admin/admin.php?page=url_shortener_add | 3.85 | 37.59 |
Short Links /wp-admin/admin.php?page=url_shortener_links | 3.88 | 37.77 |
Categories /wp-admin/edit-tags.php?taxonomy=short_link_category | 3.85 | 39.82 |
Settings /wp-admin/admin.php?page=url_shortener_settings | 3.85 | 40.24 |
Server storage [IO: ▲0.25MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_short_link_replacements |
wp_short_links |
wp_short_link_clicks |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
urlshortener_defaults |
widget_theysaidso_widget |
url_shortener_activated |
url_shortener_views |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for URL Shortener by MyThemeShop
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲79 | 14.45 ▲0.08 | 1.73 ▼0.01 | 42.63 ▲0.69 |
Dashboard /wp-admin | 2,253 ▲65 | 5.80 ▼0.05 | 98.61 ▲0.35 | 39.66 ▼4.03 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.00 ▼0.05 | 41.52 ▼0.41 | 37.26 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,572 ▲49 | 23.35 ▲0.20 | 594.34 ▼51.62 | 49.11 ▼6.53 |
Media Library /wp-admin/upload.php | 1,434 ▲46 | 4.20 ▼0.02 | 97.32 ▼3.43 | 42.43 ▼2.20 |
Edit Link /wp-admin/admin.php?page=url_shortener_edit | 1,369 | 2.46 | 53.67 | 41.73 |
Add Link /wp-admin/admin.php?page=url_shortener_add | 1,372 | 2.52 | 60.59 | 37.47 |
Short Links /wp-admin/admin.php?page=url_shortener_links | 1,164 | 2.00 | 28.08 | 26.65 |
Categories /wp-admin/edit-tags.php?taxonomy=short_link_category | 1,279 | 2.13 | 26.88 | 29.88 |
Settings /wp-admin/admin.php?page=url_shortener_settings | 1,167 | 3.48 | 46.56 | 28.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_short_link_replacements
- wp_short_links
- wp_short_link_clicks
- Zombie WordPress options were found after uninstall: 9 options
- can_compress_scripts
- url_shortener_activated
- urlshortener_defaults
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- url_shortener_views
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-settings.php:14
- > PHP Notice
Undefined variable: title in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-edit.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/mts-url-shortener/admin/class-url-shortener-list-table.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-stats.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function prepare_items() on null in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-links.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-add.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mts-url-shortener/admin/views/url-shortener-edit.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
mts-url-shortener/mts-url-shortener.php Passed 13 tests
"URL Shortener by MyThemeShop" version 1.0.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
111 characters long description:
A simple-yet-powerful tool for creating short links. hiding affiliate links, Ideal for social sharing and more.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,488 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 725 | 1,259 | 4,185 |
CSS | 1 | 2 | 4 | 195 |
JavaScript | 3 | 12 | 13 | 108 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 91.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 442.00 |
Average method complexity | 6.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 73.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 175 | |
▷ Static methods | 13 | 7.43% |
▷ Public methods | 170 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 2.86% |
Functions | 3 | |
▷ Named functions | 3 | 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
There were not PNG files found in your plugin