88% like-share-my-site

Code Review | Like & Share My Site

WordPress plugin Like & Share My Site scored 88% from 54 tests.

About plugin

  • Plugin page: like-share-my-site
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5
  • WordPress version: 5.8.1
  • First release: Feb 27, 2013
  • Latest release: Feb 27, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: SFlack (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,735 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼134.57ms] Passed 4 tests

Analyzing server-side resources used by Like & Share My Site
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1438.28 ▲15.59
Dashboard /wp-admin3.09 ▲0.0360.82 ▲13.81
Posts /wp-admin/edit.php3.15 ▲0.0357.33 ▲15.48
Add New Post /wp-admin/post-new.php5.45 ▲0.0191.97 ▼570.19
Media Library /wp-admin/upload.php3.04 ▲0.0336.35 ▲2.64
Like & Share My Site Options /wp-admin/plugins.php?page=lsms_admin3.0828.61

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Like & Share My Site
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.80 ▲0.1610.36 ▲1.7948.65 ▼2.36
Dashboard /wp-admin2,975 ▲445.92 ▼0.23154.87 ▲0.42145.93 ▲29.31
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0176.87 ▲6.3293.31 ▲3.70
Add New Post /wp-admin/post-new.php1,505 ▼17818.59 ▼0.15392.45 ▲8.56113.67 ▲2.21
Media Library /wp-admin/upload.php1,815 ▲55.06 ▲0.04150.97 ▼4.67128.95 ▲7.06
Like & Share My Site Options /wp-admin/plugins.php?page=lsms_admin1,1372.0957.2276.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% 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/plugins.php?page=lsms_admin
    • > Notice in wp-content/plugins/like-share-my-site/lsms.php+59
    Undefined index: submit_lsms
    • > GET request to /wp-admin/plugins.php?page=lsms_admin
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/plugins.php?page=lsms_admin
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-share-my-site/lsms.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: social, google, stumbleupon, twitter, tumblr...

like-share-my-site/lsms.php 92% from 13 tests

Analyzing the main PHP file in "Like & Share My Site" version 0.2
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("like-share-my-site.php" instead of "lsms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected185 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP13051140
CSS26030
JavaScript31015

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected