Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.22ms] Passed 4 tests
Analyzing server-side resources used by Pretty file links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.98 ▲0.90 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.45 ▼2.62 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 50.78 ▲5.34 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 88.23 ▼9.24 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.43 ▲2.09 |
Pretty file links /wp-admin/options-general.php?page=pretty-file-links | 3.23 | 29.83 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pretty file links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 13.26 ▼1.38 | 1.80 ▼0.10 | 40.65 ▼3.85 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.92 | 100.41 ▼4.66 | 39.98 ▼1.18 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.03 | 35.07 ▼1.13 | 34.08 ▲0.53 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.29 ▲5.73 | 681.60 ▼21.01 | 65.39 ▲4.20 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.18 ▼0.03 | 94.19 ▼14.51 | 43.18 ▼3.37 |
Pretty file links /wp-admin/options-general.php?page=pretty-file-links | 853 | 2.25 | 30.70 | 41.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pretty-file-links
- > Notice in wp-content/plugins/pretty-file-links/PrettyFileLinks.php+260
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/pretty-file-links/PrettyFileLinks.php:31
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=pretty-file-links
- > Javascript (severe) in unknown
/wp-content/plugins/pretty-file-links//js/style_previewer.js?ver=6.3.1 34:43 Uncaught TypeError: Cannot read properties of undefined (reading 'indexOf')
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (An extra option is added to the media uploader.), #2 (A shortcode is automatically created in the Editor for you.), #3 (Styles can be changed quickly and easily.), #4 (An example of a pretty file link using the default style.), #5 (An example of a pretty file link using the inline style.), #6 (An example of a pretty file link using the fully inline style.)
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== pretty-file-links ===
)
pretty-file-links/PrettyFileLinks.php 92% from 13 tests
Analyzing the main PHP file in "Pretty file links" version 0.9
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("pretty-file-links.php" instead of "PrettyFileLinks.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 detected557 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 46 | 36 | 300 |
PHP | 1 | 52 | 74 | 225 |
JavaScript | 1 | 4 | 11 | 32 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 57.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.14MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-6.png | 8.34KB | 5.59KB | ▼ 32.95% |
screenshot-1.png | 18.63KB | 9.53KB | ▼ 48.84% |
images/silk_icons/page_white_powerpoint.png | 0.57KB | 0.61KB | 0.00% |
images/silk_icons/ipod.png | 0.45KB | 0.70KB | 0.00% |
images/silk_icons/page_white_camera.png | 0.64KB | 0.69KB | 0.00% |