78% wplike2get

Code Review | wpLike2Get

WordPress plugin wpLike2Get scored78%from 54 tests.

About plugin

  • Plugin page: wplike2get
  • Plugin version: 1.2.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2012
  • Latest release: Jun 12, 2015
  • Number of updates: 37
  • Update frequency: every 34.8 days
  • Top authors: drumba (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

100+ active /22,389 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼7.15ms] Passed 4 tests

This is a short check of server-side resources used by wpLike2Get
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.09 ▲0.12
Dashboard /wp-admin3.39 ▲0.0849.72 ▼6.58
Posts /wp-admin/edit.php3.50 ▲0.1449.67 ▼0.94
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.71 ▼21.20
Media Library /wp-admin/upload.php3.31 ▲0.0839.71 ▲3.84
wpLike2Get /wp-admin/options-general.php?page=wplike2get-settings3.1235.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
wplike2get_settings
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

wpLike2Get: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.69 ▲0.341.67 ▲0.0739.52 ▼0.37
Dashboard /wp-admin2,199 ▲195.62 ▲0.0291.55 ▼3.8640.75 ▼3.43
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0034.86 ▼4.6234.27 ▼2.39
Add New Post /wp-admin/post-new.php1,530 ▲422.83 ▼0.39680.11 ▲10.6756.12 ▲1.81
Media Library /wp-admin/upload.php1,404 ▲74.24 ▲0.04107.10 ▲4.4749.64 ▲2.69
wpLike2Get /wp-admin/options-general.php?page=wplike2get-settings2,0262.3951.8644.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wplike2get-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=wplike2get-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function 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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplike2get/meta-boxes.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplike2get/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wplike2get/wpLike2Get.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (wpLike2Get settings excerpt), #2 (The wpLike2Get option in the media-uploader), #3 (Example layout of all the social media buttons), #4 (Example layout of the download link after facebook like)
You can take inspiration from this readme.txt

wplike2get/wpLike2Get.php 92% from 13 tests

The principal PHP file in "wpLike2Get" v. 1.2.9 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wplike2get.php" instead of "wpLike2Get.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,079 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP4112285867
PO File3290626664
JavaScript65979416
LESS2284130
CSS2002

PHP code Passed 2 tests

An short overview of 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.36
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%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.28MB with 0.20MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png58.81KB18.15KB▼ 69.13%
screenshot-1.png91.16KB31.02KB▼ 65.97%
screenshot-4.png84.29KB22.72KB▼ 73.04%
screenshot-2.png55.13KB16.67KB▼ 69.76%