Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼1.09MB] [CPU: ▼339.30ms] Passed 4 tests
A check of server-side resources used by JL Like Pro
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 45.80 ▼8.41 |
Dashboard /wp-admin | 3.24 ▼0.17 | 18.83 ▼20.11 |
Posts /wp-admin/edit.php | 3.24 ▼0.40 | 21.15 ▼79.33 |
Add New Post /wp-admin/post-new.php | 3.24 ▼3.73 | 19.41 ▼1,249.35 |
Media Library /wp-admin/upload.php | 3.24 ▼0.05 | 30.58 ▲3.31 |
JL Like Pro /wp-admin/plugins.php?page=jl-like-pro | 3.25 | 21.85 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
jllikepro_plgn_options |
Browser metrics Passed 4 tests
A check of browser resources used by JL Like Pro
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲20 | 15.67 ▼0.02 | 5.90 ▼0.31 | 2.19 ▲0.24 |
Dashboard /wp-admin | 2,893 ▲33 | 6.14 ▲0.03 | 120.40 ▼5.19 | 179.68 ▲12.11 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.23 ▼0.00 | 65.12 ▼0.38 | 148.58 ▼3.90 |
Add New Post /wp-admin/post-new.php | 1,628 ▼44 | 20.08 ▼1.46 | 497.65 ▲32.23 | 406.79 ▲230.41 |
Media Library /wp-admin/upload.php | 1,697 ▼1 | 5.51 ▼0.01 | 156.95 ▲7.41 | 225.95 ▲33.63 |
JL Like Pro /wp-admin/plugins.php?page=jl-like-pro | 1,981 | 4.30 | 77.69 | 125.58 |
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
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/jl-like-pro/includes/helper.php+298
array_merge(): Expected parameter 2 to be an array, string given
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=jl-like-pro
- > Warning in wp-content/plugins/jl-like-pro/includes/helper.php+298
array_merge(): Expected parameter 2 to be an array, string given
- 32 occurences, only the last one shown
- > GET request to /wp-admin/plugins.php?page=jl-like-pro
- > Notice in wp-content/plugins/jl-like-pro/tmpl/adminform.php+356
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jl-like-pro/includes/ajax.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jl-like-pro/jl-like-pro.php:34
- > PHP Notice
Undefined index: tpget in wp-content/plugins/jl-like-pro/includes/ajax.php on line 4
- > PHP Notice
Undefined index: curl in wp-content/plugins/jl-like-pro/includes/ajax.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/jl-like-pro/tmpl/adminform.php:5
- > PHP Notice
Undefined index: variant in wp-content/plugins/jl-like-pro/includes/ajax.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 48 tag instead of maximum 10
jl-like-pro/jl-like-pro.php Passed 13 tests
"JL Like Pro" version 1.1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
129 characters long description:
Help share your posts on popular social networks: VKontakte, Facebook, ok.ru, Google Plus, Twitter, LinkedIn, mail.ru, Pinterest.
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
Success! There were no dangerous files found in this plugin1,945 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 137 | 51 | 983 |
JavaScript | 2 | 130 | 39 | 745 |
PO File | 1 | 62 | 66 | 137 |
CSS | 1 | 1 | 0 | 76 |
HTML | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 14 | 60.87% |
▷ Public methods | 20 | 86.96% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 13.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/likes-bg.png | 0.37KB | 0.33KB | ▼ 11.26% |
jllikepro.png | 20.08KB | 10.14KB | ▼ 49.49% |
assets/images/likes-ico.png | 15.94KB | 7.51KB | ▼ 52.87% |