Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼8.96ms] Passed 4 tests
Analyzing server-side resources used by ShortLink Analytics by SVS-Websoft
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.68 ▼5.41 |
Dashboard /wp-admin | 3.37 ▲0.06 | 43.84 ▼5.69 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.06 ▼4.45 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.18 ▼20.29 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.25 ▲0.94 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_svs_shortlinks |
wp_svs_statistics |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ShortLink Analytics by SVS-Websoft
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲59 | 14.47 ▲0.09 | 1.65 ▼0.33 | 43.15 ▼2.32 |
Dashboard /wp-admin | 2,216 ▲28 | 5.80 ▲0.90 | 99.86 ▼8.49 | 37.27 ▼2.49 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.02 | 34.95 ▼5.04 | 31.16 ▼6.09 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.26 ▲0.15 | 620.69 ▼64.64 | 50.74 ▼4.17 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.19 ▼0.05 | 94.00 ▼8.66 | 42.20 ▼0.55 |
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
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_svs_shortlinks
- wp_svs_statistics
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/svs-shortlink-analytics/views/_footer.php
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-shortlink-analytics/views/_header.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-shortlink-analytics/views/_header.php:4
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/svs-shortlink-analytics/views/statistics.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/svs-shortlink-analytics/ShortlinkAnalyticsMain.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-shortlink-analytics/views/_header.php:4
- > PHP Notice
Undefined variable: _data in wp-content/plugins/svs-shortlink-analytics/views/statistics.php on line 14
- > 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)
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: Too many tags (57 tag instead of maximum 10); only the first 5 tags are used in your directory listing
svs-shortlink-analytics/ShortlinkAnalyticsMain.php 92% from 13 tests
This is the main PHP file of "ShortLink Analytics by SVS-Websoft" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("svs-shortlink-analytics.php" instead of "ShortlinkAnalyticsMain.php")
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
Good job! No executable or dangerous file extensions detected776 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 78 | 64 | 677 |
CSS | 1 | 1 | 0 | 99 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/back.png | 4.42KB | 1.50KB | ▼ 66.14% |
images/add.png | 5.71KB | 2.19KB | ▼ 61.57% |
images/reset.png | 3.53KB | 1.19KB | ▼ 66.28% |
images/show_statistics.png | 7.78KB | 2.55KB | ▼ 67.18% |
images/delete.png | 3.44KB | 0.98KB | ▼ 71.59% |