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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.25 | 41.92 ▼0.98 |
Dashboard /wp-admin | 3.57 ▲0.23 | 54.70 ▲1.11 |
Posts /wp-admin/edit.php | 3.69 ▲0.29 | 49.96 ▼4.14 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.23 | 90.78 ▼11.83 |
Media Library /wp-admin/upload.php | 3.50 ▲0.23 | 40.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲159 | 13.85 ▼0.36 | 8.10 ▲6.45 | 42.31 ▲1.39 |
Dashboard /wp-admin | 2,195 ▲24 | 5.55 ▼0.09 | 89.44 ▼6.75 | 73.51 ▲26.60 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▲0.00 | 38.23 ▼0.69 | 35.73 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,553 ▲25 | 22.89 ▼0.33 | 665.90 ▲17.83 | 159.19 ▲89.81 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.15 ▼0.11 | 97.25 ▼2.55 | 82.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 ("#")
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 261 | 27 | 1,111 |
CSS | 7 | 64 | 20 | 779 |
SVG | 1 | 0 | 0 | 685 |
JavaScript | 6 | 88 | 79 | 639 |
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 code | 0.37 |
Average class complexity | 28.17 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 5.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 15 | 42.86% |
▷ Public methods | 34 | 97.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.86% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/like-samples/like-dislike-trans4.png | 1.81KB | 1.36KB | ▼ 24.65% |
images/unlike1.png | 3.57KB | 0.48KB | ▼ 86.61% |
images/like1.png | 3.68KB | 0.50KB | ▼ 86.52% |
images/like-samples/like-dislike-trans3.png | 1.24KB | 1.07KB | ▼ 13.82% |
images/buttonicon.png | 4.99KB | 2.22KB | ▼ 55.57% |