Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-shortify/src/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
Server metrics [RAM: ▼1.77MB] [CPU: ▼54.70ms] Passed 4 tests
A check of server-side resources used by WP URLs Shortener 2015 + Social icons + Analytics[goo.gl]
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.24 | 8.11 ▼33.82 |
Dashboard /wp-admin | 2.24 ▼1.10 | 9.30 ▼54.20 |
Posts /wp-admin/edit.php | 2.25 ▼1.11 | 8.38 ▼40.68 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.64 | 8.60 ▼90.10 |
Media Library /wp-admin/upload.php | 2.24 ▼0.98 | 10.63 ▼24.17 |
Settings /wp-admin/admin.php?page=wp-shortify-settings | 2.25 | 8.55 |
All Short URLS /wp-admin/admin.php?page=wp-shortify-dashboard | 2.25 | 12.02 |
Server storage [IO: ▲4.77MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
wp_shortify_plugin_name |
widget_theysaidso_widget |
wp_shortify_show_posts_clicks |
wp_shortify_ex_posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
wp_shortify_admin_access |
Browser metrics Passed 4 tests
An overview of browser requirements for WP URLs Shortener 2015 + Social icons + Analytics[goo.gl]
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,940 ▲179 | 13.84 ▼0.51 | 7.90 ▲6.22 | 39.30 ▼5.41 |
Dashboard /wp-admin | 2,243 ▲63 | 5.11 ▼0.56 | 104.88 ▲6.62 | 74.35 ▲30.08 |
Posts /wp-admin/edit.php | 2,161 ▲64 | 2.50 ▲0.56 | 45.24 ▲9.24 | 36.70 ▲1.57 |
Add New Post /wp-admin/post-new.php | 1,662 ▲134 | 24.47 ▲1.43 | 632.26 ▼34.44 | 36.24 ▼18.94 |
Media Library /wp-admin/upload.php | 1,464 ▲61 | 4.69 ▲0.49 | 106.73 ▲6.52 | 68.30 ▲24.36 |
Settings /wp-admin/admin.php?page=wp-shortify-settings | 1,317 | 2.52 | 39.28 | 35.16 |
All Short URLS /wp-admin/admin.php?page=wp-shortify-dashboard | 1,099 | 2.69 | 41.14 | 45.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-shortify/src/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- can_compress_scripts
- wp_shortify_ex_posts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- wp_shortify_plugin_name
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wp-shortify-dashboard
- > Deprecated in wp-content/plugins/wp-shortify/src/Google/Utils.php+67
Array and string offset access syntax with curly braces is deprecated
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
The following issues need your attention
- 147× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Shortify_WP_Google_Service' not found in wp-content/plugins/wp-shortify/src/Google/Service/Plus.php:32
- > PHP Fatal error
Uncaught Error: Class 'Shortify_WP_Google_Service' not found in wp-content/plugins/wp-shortify/src/Google/Service/YouTube.php:32
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/Auth/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/Auth/LoginTicket.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/Cache/Memcache.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/Cache/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/Cache/Null.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/Auth/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/Signer/P12.php on line 18
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/IO/Abstract.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/IO/Stream.php on line 24
- > PHP Fatal error
require_once(): Failed opening required 'SHORTIFY_SRC_PATHGoogle/Exception.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-shortify/src/Google/Auth/Exception.php on line 18
- > PHP Fatal error
Uncaught Error: Class 'Shortify_WP_Google_Service' not found in wp-content/plugins/wp-shortify/src/Google/Service/Customsearch.php:32
- > PHP Fatal error
Uncaught Error: Class 'Shortify_WP_Google_Service' not found in wp-content/plugins/wp-shortify/src/Google/Service/Dfareporting.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: stats, click stats, analytics, post, url stats...
wp-shortify/wp-shortify.php 77% from 13 tests
The primary PHP file in "WP URLs Shortener 2015 + Social icons + Analytics[goo.gl]" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: You should use only dashes and lowercase characters for the domain path ("lang")
- Domain Path: Please prefix the domain path with a forward slash character ("/lang")
- Description: Keep the plugin description shorter than 140 characters (currently 246 characters long)
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
Everything looks great! No dangerous files found in this plugin127,681 lines of code in 117 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 107 | 20,356 | 25,501 | 121,375 |
CSS | 5 | 28 | 19 | 5,991 |
JavaScript | 5 | 127 | 61 | 315 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 1.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2,298 | |
▷ Abstract classes | 5 | 0.22% |
▷ Concrete classes | 2,293 | 99.78% |
▷ Final classes | 0 | 0.00% |
Methods | 17,885 | |
▷ Static methods | 18 | 0.10% |
▷ Public methods | 17,847 | 99.79% |
▷ Protected methods | 11 | 0.06% |
▷ Private methods | 27 | 0.15% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 198 | |
▷ Global constants | 11 | 5.56% |
▷ Class constants | 187 | 94.44% |
▷ Public constants | 187 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/forward_enabled_hover.png | 1.35KB | 0.58KB | ▼ 56.93% |
css/chosen-sprite.png | 0.72KB | 0.65KB | ▼ 10.38% |
images/forward_enabled.png | 1.35KB | 0.58KB | ▼ 56.96% |
images/back_enabled.png | 1.35KB | 0.60KB | ▼ 55.69% |
images/wp-shortify.png | 0.88KB | 0.97KB | 0.00% |