Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼0.95ms] Passed 4 tests
An overview of server-side resources used by Mx Link Shortener
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 41.74 ▼2.54 |
Dashboard /wp-admin | 3.49 ▲0.19 | 53.00 ▼2.74 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.54 ▼0.39 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 99.74 ▲1.86 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 44.47 ▲6.34 |
Link Name /wp-admin/admin.php?page=mx-shortened-links | 3.32 | 41.17 |
Link Shortener /wp-admin/options-general.php?page=mx-link-shortener | 3.33 | 37.48 |
Server storage [IO: ▲1.52MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 46 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mxmls_link_shortener |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Mx Link Shortener
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲182 | 13.82 ▼0.93 | 10.88 ▲8.87 | 42.14 ▼4.26 |
Dashboard /wp-admin | 2,215 ▲27 | 4.87 ▼1.03 | 100.54 ▼14.33 | 40.29 ▼3.34 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.14 ▲0.12 | 35.74 ▼2.60 | 35.90 ▲0.20 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.35 ▲5.82 | 682.45 ▼11.97 | 66.39 ▲7.84 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.05 | 102.49 ▼13.52 | 42.80 ▼5.33 |
Link Name /wp-admin/admin.php?page=mx-shortened-links | 785 | 2.05 | 23.18 | 25.35 |
Link Shortener /wp-admin/options-general.php?page=mx-link-shortener | 813 | 2.05 | 24.43 | 27.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_mxmls_link_shortener
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mx-link-shortener/includes/admin/views/hidemenu-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/mx-link-shortener/includes/admin/views/settings-page.php:43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: cut link, short link, link shortener
mx-link-shortener/mx-link-shortener.php Passed 13 tests
The principal PHP file in "Mx Link Shortener" v. 1.1 is loaded by WordPress automatically on each request
72 characters long description:
This plugin shortens links and allows you to store them on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin14,372 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 267 | 1,635 | 10,348 |
CSS | 4 | 2 | 14 | 2,380 |
PHP | 27 | 714 | 386 | 926 |
SVG | 1 | 0 | 0 | 685 |
PO File | 1 | 8 | 8 | 33 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 3.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 1 | 5.00% |
Methods | 66 | |
▷ Static methods | 18 | 27.27% |
▷ Public methods | 66 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 7 | 77.78% |
▷ Anonymous functions | 2 | 22.22% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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