89% plzshareme-url-shortener-viral-booster

Code Review | PlzShareMe URL Shortener & Viral Booster

WordPress plugin PlzShareMe URL Shortener & Viral Booster scored89%from 54 tests.

About plugin

  • Plugin page: plzshareme-url-sh...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Nov 3, 2016
  • Number of updates: 17
  • Update frequency: every 16.4 days
  • Top authors: plzshareme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,660 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▲0.91ms] Passed 4 tests

This is a short check of server-side resources used by PlzShareMe URL Shortener & Viral Booster
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0848.90 ▲0.02
Dashboard /wp-admin3.38 ▲0.0755.68 ▲0.79
Posts /wp-admin/edit.php3.49 ▲0.1351.22 ▼3.33
Add New Post /wp-admin/post-new.php3.23 ▼2.661,107.91 ▲1,000.99
Media Library /wp-admin/upload.php3.30 ▲0.0744.07 ▲6.15
PlzShare.Me /wp-admin/admin.php?page=short_link_settings_page3.2841.43
Settings /wp-admin/admin.php?page=short_link_settings_page23.2935.18

Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for PlzShareMe URL Shortener & Viral Booster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.41 ▲0.251.77 ▼0.3145.96 ▲0.99
Dashboard /wp-admin2,229 ▲524.91 ▼0.71105.84 ▲10.5982.62 ▲37.25
Posts /wp-admin/edit.php2,137 ▲342.35 ▲0.3943.60 ▲2.6535.77 ▼3.79
Add New Post /wp-admin/post-new.php6,251 ▲4,71426.22 ▲7.92974.50 ▲299.0756.78 ▼9.55
Media Library /wp-admin/upload.php1,431 ▲314.51 ▲0.28111.05 ▼4.8665.91 ▲20.16
PlzShare.Me /wp-admin/admin.php?page=short_link_settings_page1,0222.3841.1749.72
Settings /wp-admin/admin.php?page=short_link_settings_page29851.9327.7837.64

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
You can look at the official readme.txt

plzshareme-url-shortener-viral-booster/plzshareme_shorturl.php 77% from 13 tests

The main PHP file in "PlzShareMe URL Shortener & Viral Booster" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 479 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("plzshareme-url-shortener-viral-booster.php" instead of "plzshareme_shorturl.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected746 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP36142446
JavaScript104162
CSS1152138

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.13MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icons/google-plzshareme-icon.png15.82KB1.73KB▼ 89.05%
icon.png15.91KB0.82KB▼ 94.82%
icons/analyticsicon.png17.71KB1.10KB▼ 93.81%
icons/facebook-plzshareme-icon.png16.49KB1.65KB▼ 90.01%
icons/twitter-plzshareme-icon.png15.56KB1.45KB▼ 90.67%