Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php+15
Undefined variable: wpdb
Server metrics [RAM: ▼0.28MB] [CPU: ▼18.17ms] Passed 4 tests
This is a short check of server-side resources used by Lemonberry Page Protect
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.63 ▲1.07 |
Dashboard /wp-admin | 3.37 ▲0.02 | 46.28 ▼12.43 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 45.45 ▼0.62 |
Add New Post /wp-admin/post-new.php | 4.66 ▼1.23 | 43.49 ▼60.15 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 35.83 ▲0.52 |
Page Protect /wp-admin/options-general.php?page=page-protect-options | 3.23 | 26.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lb_page_protect |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Lemonberry Page Protect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.24 ▼1.16 | 1.81 ▲0.12 | 38.59 ▼0.59 |
Dashboard /wp-admin | 2,213 ▲22 | 5.89 ▲1.00 | 95.08 ▼6.36 | 38.76 ▼5.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.02 | 40.14 ▲3.68 | 35.58 ▲1.66 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.31 ▲0.25 | 658.79 ▲58.31 | 57.08 ▲7.72 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.05 | 101.74 ▲1.01 | 44.53 ▲1.65 |
Page Protect /wp-admin/options-general.php?page=page-protect-options | 767 | 2.02 | 24.34 | 26.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_lb_page_protect
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=page-protect-options
- > Warning in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php+255
sort() expects parameter 1 to be array, bool given
- > GET request to /wp-admin/options-general.php?page=page-protect-options
- > Notice in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php+305
Trying to access array offset on value of type bool
SRP 50% 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php on line 15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/lemonberry-page-protect/lb-page-protect.php:18
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (Not available... yet) image required
- Plugin Name: Please specify the plugin name on the first line (
=== lemonberry-page-protect ===
)
lemonberry-page-protect/lb-page-protect.php 92% from 13 tests
This is the main PHP file of "Lemonberry Page Protect" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lemonberry-page-protect.php" instead of "lb-page-protect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin335 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 49 | 53 | 335 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin