10% wp-shortify

Code Review | WP URLs Shortener 2015 + Social icons + Analytics[goo.gl]

WordPress plugin WP URLs Shortener 2015 + Social icons + Analytics[goo.gl] scored10%from 54 tests.

About plugin

  • Plugin page: wp-shortify
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 3, 2015
  • Latest release: Apr 5, 2015
  • Number of updates: 16
  • Update frequency: every 0.1 days
  • Top authors: khubbaib (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,458 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.22 ▼1.248.11 ▼33.82
Dashboard /wp-admin2.24 ▼1.109.30 ▼54.20
Posts /wp-admin/edit.php2.25 ▼1.118.38 ▼40.68
Add New Post /wp-admin/post-new.php2.24 ▼3.648.60 ▼90.10
Media Library /wp-admin/upload.php2.24 ▼0.9810.63 ▼24.17
Settings /wp-admin/admin.php?page=wp-shortify-settings2.258.55
All Short URLS /wp-admin/admin.php?page=wp-shortify-dashboard2.2512.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.84 ▼0.517.90 ▲6.2239.30 ▼5.41
Dashboard /wp-admin2,243 ▲635.11 ▼0.56104.88 ▲6.6274.35 ▲30.08
Posts /wp-admin/edit.php2,161 ▲642.50 ▲0.5645.24 ▲9.2436.70 ▲1.57
Add New Post /wp-admin/post-new.php1,662 ▲13424.47 ▲1.43632.26 ▼34.4436.24 ▼18.94
Media Library /wp-admin/upload.php1,464 ▲614.69 ▲0.49106.73 ▲6.5268.30 ▲24.36
Settings /wp-admin/admin.php?page=wp-shortify-settings1,3172.5239.2835.16
All Short URLS /wp-admin/admin.php?page=wp-shortify-dashboard1,0992.6941.1445.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP10720,35625,501121,375
CSS528195,991
JavaScript512761315

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 code0.02
Average class complexity1.20
▷ Minimum class complexity1.00
▷ Maximum class complexity56.00
Average method complexity1.03
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2,298
▷ Abstract classes50.22%
▷ Concrete classes2,29399.78%
▷ Final classes00.00%
Methods17,885
▷ Static methods180.10%
▷ Public methods17,84799.79%
▷ Protected methods110.06%
▷ Private methods270.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants198
▷ Global constants115.56%
▷ Class constants18794.44%
▷ Public constants187100.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
FileSize - originalSize - compressedSavings
images/forward_enabled_hover.png1.35KB0.58KB▼ 56.93%
css/chosen-sprite.png0.72KB0.65KB▼ 10.38%
images/forward_enabled.png1.35KB0.58KB▼ 56.96%
images/back_enabled.png1.35KB0.60KB▼ 55.69%
images/wp-shortify.png0.88KB0.97KB0.00%