84% like-and-who-likes

Code Review | Like And Who Likes

WordPress plugin Like And Who Likes scored84%from 54 tests.

About plugin

  • Plugin page: like-and-who-likes
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.4
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: May 10, 2017
  • Number of updates: 25
  • Update frequency: every 3.2 days
  • Top authors: Atonyk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,405 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Like And Who Likes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.87 ▼7.30
Dashboard /wp-admin3.40 ▲0.0950.41 ▼2.44
Posts /wp-admin/edit.php3.51 ▲0.1553.88 ▲8.63
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.88 ▼7.22
Media Library /wp-admin/upload.php3.32 ▲0.0938.35 ▲2.36
Like And Who Likes /wp-admin/options-general.php?page=like-and-who-likes3.2834.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Like And Who Likes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲14413.59 ▼0.975.66 ▲3.4439.63 ▼6.55
Dashboard /wp-admin2,213 ▲255.88 ▲0.0399.99 ▼5.2238.48 ▼7.46
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0135.24 ▼1.9337.38 ▼0.73
Add New Post /wp-admin/post-new.php1,517 ▼1717.53 ▼5.62694.86 ▼6.5455.11 ▲3.91
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.03102.28 ▼6.4747.25 ▲0.96
Like And Who Likes /wp-admin/options-general.php?page=like-and-who-likes8292.0626.0929.34

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/like-and-who-likes/includes/class-who-likes-settings.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: rate, buddypress, vote, social, like...

like-and-who-likes/like-and-who-likes.php Passed 13 tests

The principal PHP file in "Like And Who Likes" v. 1.3.1 is loaded by WordPress automatically on each request
73 characters long description:
'Like' button and 'Who Likes' list for WordPress, BuddyPress and BBPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected394 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP39440343
CSS12331
JavaScript15020

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity30.00
▷ Minimum class complexity3.00
▷ Maximum class complexity57.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods28.00%
▷ Public methods1768.00%
▷ Protected methods00.00%
▷ Private methods832.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected