90% like-post-block

Code Review | Like Post Block

WordPress plugin Like Post Block scored90%from 54 tests.

About plugin

  • Plugin page: like-post-block
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2023
  • Latest release: Oct 19, 2023
  • Number of updates: 2
  • Update frequency: every 8.0 days
  • Top authors: RokuMetal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /11 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼2.47ms] Passed 4 tests

An overview of server-side resources used by Like Post Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.56 ▲3.70
Dashboard /wp-admin3.40 ▲0.1047.92 ▼1.84
Posts /wp-admin/edit.php3.52 ▲0.1649.68 ▲1.95
Add New Post /wp-admin/post-new.php5.99 ▲0.1186.30 ▼13.68
Media Library /wp-admin/upload.php3.32 ▲0.1039.41 ▲3.78

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

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

Browser metrics Passed 4 tests

Like Post Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.26 ▼0.391.78 ▲0.1746.51 ▲4.81
Dashboard /wp-admin2,195 ▲245.63 ▲0.1090.05 ▲1.6342.32 ▼0.09
Posts /wp-admin/edit.php2,129 ▲321.96 ▼0.0641.05 ▲6.4737.09 ▲3.34
Add New Post /wp-admin/post-new.php6,366 ▲4,83828.59 ▲5.81899.40 ▲238.4955.76 ▲1.54
Media Library /wp-admin/upload.php1,400 ▼34.22 ▲0.0494.82 ▲1.4542.12 ▼2.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
4 plugin tags: block, like, heart, like post

like-post-block/like-post-block.php Passed 13 tests

The primary PHP file in "Like Post Block" version 1.2.0 is used by WordPress to initiate all plugin functionality
35 characters long description:
Add a button to like any post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected524 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1198229349
JavaScript33860118
JSON10055
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.60
▷ Minimum class complexity3.00
▷ Maximum class complexity8.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants00.00%
▷ Class constants7100.00%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin