80% like-computy

Code Review | Like computy

WordPress plugin Like computy scored80%from 54 tests.

About plugin

  • Plugin page: like-computy
  • Plugin version: 1.4.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 4, 2021
  • Latest release: Aug 18, 2023
  • Number of updates: 13
  • Update frequency: every 57.2 days
  • Top authors: calliko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /695 total downloads

Benchmarks

Plugin footprint 65% 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.04MB] [CPU: ▼4.43ms] Passed 4 tests

An overview of server-side resources used by Like computy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.10 ▲4.25
Dashboard /wp-admin3.35 ▲0.0452.16 ▲0.47
Posts /wp-admin/edit.php3.40 ▲0.0446.93 ▼5.50
Add New Post /wp-admin/post-new.php5.93 ▲0.0492.19 ▼12.29
Media Library /wp-admin/upload.php3.27 ▲0.0436.65 ▼0.40

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_like_computy
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Like computy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲15213.77 ▼0.849.39 ▲7.4946.03 ▲0.57
Dashboard /wp-admin2,209 ▲295.66 ▼0.0182.45 ▼6.4741.76 ▼3.31
Posts /wp-admin/edit.php2,114 ▲172.02 ▲0.0135.35 ▼1.5334.76 ▲2.03
Add New Post /wp-admin/post-new.php1,552 ▼323.17 ▲5.00610.64 ▼22.4156.91 ▲8.50
Media Library /wp-admin/upload.php1,414 ▲174.26 ▲0.0196.94 ▼9.2342.13 ▼3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_like_computy
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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 Passed 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
3 plugin tags: like, likes, emoji

like-computy/like-computy.php Passed 13 tests

The primary PHP file in "Like computy" version 1.4.3 is used by WordPress to initiate all plugin functionality
104 characters long description:
Displaying like buttons for an article, page or product card using the [buttons_like_computy] shortcode.

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
Good job! No executable or dangerous file extensions detected555 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP48250233
CSS222191
SVG70288
JavaScript124543

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin