Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.39ms] Passed 4 tests
An overview of server-side resources used by Like to Unlock lite
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.66 ▼3.72 |
Dashboard /wp-admin | 3.46 ▲0.16 | 45.26 ▼6.05 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 47.78 ▲1.70 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.25 ▼5.49 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 35.48 ▲2.49 |
JCWP Like to Unlock /wp-admin/options-general.php?page=jcorgStpLtU-plugin | 3.32 | 28.42 |
Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 14 new options
New WordPress options |
---|
jcorgltu_width |
db_upgraded |
jcorgltu_active |
widget_recent-comments |
jcorgltu_font |
jcorgltu_show_faces |
jcorgltu_colorscheme |
widget_theysaidso_widget |
theysaidso_admin_options |
jcorgltu_facebook_app_id |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Like to Unlock lite
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲225 | 14.11 ▼0.27 | 7.89 ▲6.10 | 42.81 ▲1.21 |
Dashboard /wp-admin | 2,210 ▲19 | 4.82 ▼1.08 | 113.21 ▲13.59 | 41.27 ▲3.46 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 40.56 ▲4.61 | 38.65 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.38 ▲5.79 | 671.58 ▲9.44 | 55.16 ▲1.59 |
Media Library /wp-admin/upload.php | 1,386 ▲4 | 4.18 ▲0.00 | 97.63 ▲1.91 | 42.16 ▼3.18 |
JCWP Like to Unlock /wp-admin/options-general.php?page=jcorgStpLtU-plugin | 1,043 | 2.20 | 26.18 | 29.97 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 14 options
- jcorgltu_text_to_display
- jcorgltu_facebook_app_id
- jcorgltu_show_faces
- theysaidso_admin_options
- jcorgltu_hide
- widget_theysaidso_widget
- jcorgltu_width
- jcorgltu_font
- can_compress_scripts
- widget_recent-posts
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=jcorgStpLtU-plugin
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=jcorgStpLtU-plugin
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jcwp-like-to-unlock-lite/jcwp-like-to-unlock-lite.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Settings - screenshot-1.png), #2 (Usage - screenshot-2.png)
jcwp-like-to-unlock-lite/jcwp-like-to-unlock-lite.php 92% from 13 tests
Analyzing the main PHP file in "Like to Unlock lite" version 1.1
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 283 characters long)
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
Everything looks great! No dangerous files found in this plugin716 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 173 | 245 | 715 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.89 |
Average class complexity | 104.00 |
▷ Minimum class complexity | 104.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 6.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
3 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screentshot-1.png | 29.90KB | 15.87KB | ▼ 46.92% |
LTU.png | 66.10KB | 36.62KB | ▼ 44.60% |
screentshot-2.png | 4.07KB | 2.20KB | ▼ 46.05% |