84% lotos-likes

Code Review | Lotos Likes

WordPress plugin Lotos Likes scored84%from 54 tests.

About plugin

  • Plugin page: lotos-likes
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: May 4, 2019
  • Latest release: Jul 10, 2021
  • Number of updates: 13
  • Update frequency: every 69.2 days
  • Top authors: excellentdynamics (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,072 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▲0.32ms] Passed 4 tests

An overview of server-side resources used by Lotos Likes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.41 ▲0.32
Dashboard /wp-admin3.43 ▲0.1244.40 ▼4.00
Posts /wp-admin/edit.php3.54 ▲0.1848.36 ▲3.19
Add New Post /wp-admin/post-new.php6.01 ▲0.1295.90 ▲3.35
Media Library /wp-admin/upload.php3.35 ▲0.1237.74 ▲1.78
Lotos Likes /wp-admin/admin.php?page=lotos-likes3.3231.16

Server storage [IO: ▲0.17MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options
widget_lotos_likes_widget
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Lotos Likes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19114.01 ▼0.396.06 ▲4.1542.92 ▼3.74
Dashboard /wp-admin2,221 ▲334.91 ▲0.0798.07 ▼11.0073.44 ▲29.42
Posts /wp-admin/edit.php2,110 ▲212.01 ▼0.0339.03 ▲2.9633.68 ▼2.02
Add New Post /wp-admin/post-new.php1,527 ▼117.51 ▼0.69720.24 ▲102.3655.77 ▲3.43
Media Library /wp-admin/upload.php1,394 ▲64.18 ▼0.0494.92 ▼4.6266.05 ▲24.89
Lotos Likes /wp-admin/admin.php?page=lotos-likes9172.1923.7124.86

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_lotos_likes_widget
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lotos-likes/lotos-likes.php:19

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 uses markdown syntax to describe your plugin to the world
6 plugin tags: services, shortcode, likes, template tag, post...

lotos-likes/lotos-likes.php 92% from 13 tests

The entry point to "Lotos Likes" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected527 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28829349
PO File14040122
JavaScript15033
CSS11023

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity35.00
▷ Minimum class complexity6.00
▷ Maximum class complexity64.00
Average method complexity3.62
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.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
5 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/heart_active.png1.07KB0.29KB▼ 73.00%
images/heart.png1.07KB0.29KB▼ 72.56%
screenshot-1.png99.68KB36.19KB▼ 63.69%
images/favicon.png20.48KB0.63KB▼ 96.91%
images/hearts.png0.95KB0.48KB▼ 48.92%