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.04MB] [CPU: ▼5.52ms] Passed 4 tests
Analyzing server-side resources used by Like Page Locker Lite
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 47.53 ▲10.66 |
Dashboard /wp-admin | 3.36 ▲0.01 | 46.07 ▼9.89 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 42.99 ▼0.02 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 78.92 ▼15.42 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.94 ▲3.26 |
Server storage [IO: ▲0.19MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
flpll_settings |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Like Page Locker Lite
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.50 ▼1.05 | 9.13 ▲7.60 | 42.89 ▲3.35 |
Dashboard /wp-admin | 2,208 ▲33 | 5.55 ▼0.19 | 88.76 ▼11.96 | 37.49 ▼6.19 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.99 ▲0.04 | 37.33 ▲2.28 | 32.82 ▼11.22 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 18.70 ▼4.32 | 618.68 ▼53.48 | 65.86 ▲20.78 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.19 ▼0.00 | 97.79 ▲1.40 | 44.33 ▼0.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- flpll_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/facebook-like-page-locker-lite/inc/backend/tabs/upgrade.php
- > /wp-content/plugins/facebook-like-page-locker-lite/facebook-like-page-locker-lite.php
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/facebook-like-page-locker-lite/inc/frontend/front-locker.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/facebook-like-page-locker-lite/inc/backend/tabs/locker-settings.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/facebook-like-page-locker-lite/inc/cores/save-settings.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/facebook-like-page-locker-lite/inc/backend/tabs/like-settings.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/facebook-like-page-locker-lite/inc/cores/activation.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/facebook-like-page-locker-lite/inc/backend/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/facebook-like-page-locker-lite/inc/backend/tabs/about-us.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
facebook-like-page-locker-lite/facebook-like-page-locker-lite.php Passed 13 tests
This is the main PHP file of "Like Page Locker Lite" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
81 characters long description:
A simple wordpress plugin to lock your page till someone likes your facebook page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,104 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 74 | 126 | 631 |
CSS | 2 | 8 | 2 | 340 |
JavaScript | 2 | 25 | 18 | 133 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/like-button-preview.png | 40.30KB | 13.62KB | ▼ 66.19% |
images/like-box-preview.png | 92.77KB | 26.37KB | ▼ 71.58% |