64% pl-manager

Code Review | Post Like Manager

WordPress plugin Post Like Manager scored64%from 54 tests.

About plugin

  • Plugin page: pl-manager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Oct 7, 2016
  • Latest release: Oct 17, 2016
  • Number of updates: 27
  • Update frequency: every 6.2 days
  • Top authors: manidipmandal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,662 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼3.96ms] Passed 4 tests

A check of server-side resources used by Post Like Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2541.92 ▼0.98
Dashboard /wp-admin3.57 ▲0.2354.70 ▲1.11
Posts /wp-admin/edit.php3.69 ▲0.2949.96 ▼4.14
Add New Post /wp-admin/post-new.php6.15 ▲0.2390.78 ▼11.83
Media Library /wp-admin/upload.php3.50 ▲0.2340.75 ▲5.06

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 39 new files
Database: 1 new table, 31 new options
New tables
wp_pl_management
New WordPress options
plm-alignment
plm-like-icon-color
plm-use-shortcode
db_upgraded
plm-dislike-icon-color-hover
theysaidso_admin_options
plm-remove-plugin-settings
plm-exclude-posts
can_compress_scripts
plm-text-like-dislike
...

Browser metrics Passed 4 tests

A check of browser resources used by Post Like Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15913.85 ▼0.368.10 ▲6.4542.31 ▲1.39
Dashboard /wp-admin2,195 ▲245.55 ▼0.0989.44 ▼6.7573.51 ▲26.60
Posts /wp-admin/edit.php2,118 ▲181.99 ▲0.0038.23 ▼0.6935.73 ▼2.03
Add New Post /wp-admin/post-new.php1,553 ▲2522.89 ▼0.33665.90 ▲17.83159.19 ▲89.81
Media Library /wp-admin/upload.php1,406 ▲34.15 ▼0.1197.25 ▼2.5582.55 ▲36.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'mmplm_uninstall' not found or invalid function name
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_pl_management
  • Zombie WordPress options detected upon uninstall: 31 options
    • plm-show-dislike-option
    • plm-position
    • db_upgraded
    • plm-filter
    • plm-login-required
    • widget_recent-comments
    • plm-dislike-icon-color
    • plm-dislike-icon-color-hover
    • plm-exclude-post-types
    • plm-remove-plugin-settings
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 6× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pl-manager/options.php
    • > /wp-content/plugins/pl-manager/functions.php
    • > /wp-content/plugins/pl-manager/pl-manager.php
    • > /wp-content/plugins/pl-manager/user.php
    • > /wp-content/plugins/pl-manager/admin.php
    • > /wp-content/plugins/pl-manager/ajax.php

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 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("#")
The official readme.txt might help

pl-manager/pl-manager.php Passed 13 tests

"Post Like Manager" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
34 characters long description:
Simple Post Like Management System

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin3,214 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP6261271,111
CSS76420779
SVG100685
JavaScript68879639

PHP code Passed 2 tests

This is a short overview 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.37
Average class complexity28.17
▷ Minimum class complexity2.00
▷ Maximum class complexity61.00
Average method complexity5.66
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods35
▷ Static methods1542.86%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.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
9 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/like-samples/like-dislike-trans4.png1.81KB1.36KB▼ 24.65%
images/unlike1.png3.57KB0.48KB▼ 86.61%
images/like1.png3.68KB0.50KB▼ 86.52%
images/like-samples/like-dislike-trans3.png1.24KB1.07KB▼ 13.82%
images/buttonicon.png4.99KB2.22KB▼ 55.57%