Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼48.51ms] Passed 4 tests
A check of server-side resources used by Pixter Right Click Protect Images for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.58 | 41.90 ▲1.10 |
Dashboard /wp-admin | 3.01 ▼0.34 | 10.97 ▼49.90 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 12.29 ▼33.89 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 11.10 ▼86.32 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 11.02 ▼23.92 |
Pixter Right Click Protect Images for Wordpress /wp-admin/admin.php?page=pixter_disable_right_click_plugin | 3.01 | 11.23 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 14 new options
New WordPress options |
---|
pixter_disable_right_click_ver |
theysaidso_admin_options |
pixter_disable_right_click_options |
widget_recent-posts |
pixter_disable_right_click_is_guest_user |
can_compress_scripts |
pixter_disable_right_click_uid |
widget_recent-comments |
pixter_disable_right_click_db_ver |
pixter_disable_right_click_user |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Pixter Right Click Protect Images for Wordpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,855 ▲109 | 14.84 ▲0.44 | 2.00 ▲0.11 | 38.00 ▼4.72 |
Dashboard /wp-admin | 2,237 ▲49 | 4.90 ▼0.00 | 95.57 ▼20.48 | 83.61 ▲41.32 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.02 ▼0.10 | 35.70 ▼0.14 | 32.83 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,555 ▲41 | 18.17 ▲0.74 | 706.49 ▲44.32 | 62.10 ▲10.94 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.27 ▲0.06 | 101.63 ▼0.52 | 77.09 ▲33.99 |
Pixter Right Click Protect Images for Wordpress /wp-admin/admin.php?page=pixter_disable_right_click_plugin | 1,368 | 2.79 | 54.90 | 38.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pixter-me-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 11 options in the database
- pixter_disable_right_click_db_ver
- pixter_disable_right_click_ver
- pixter_disable_right_click_options
- can_compress_scripts
- p1xtr_uid
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- pixter_disable_right_click_uid
- widget_recent-posts
- ...
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/admin.php?page=pixter_disable_right_click_plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the pixter-me-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pixter_disable_right_click_plugin
- > Notice in wp-content/plugins/disable-right-click-powered-by-pixterme/admin-page-class/admin-page-class.php+1658
Undefined index: fields
- > GET request to /wp-admin/admin.php?page=pixter_disable_right_click_plugin
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
- > GET request to /wp-admin/admin.php?page=pixter_disable_right_click_plugin
- > Notice in wp-content/plugins/disable-right-click-powered-by-pixterme/admin-page-class/admin-page-class.php+1645
Undefined index: show_pages
- > GET request to /wp-admin/admin.php?page=pixter_disable_right_click_plugin
- > Notice in wp-content/plugins/disable-right-click-powered-by-pixterme/admin-page-class/admin-page-class.php+1645
Undefined index: show_posts
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/disable-right-click-powered-by-pixterme/admin_functions.php:153
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 90% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
disable-right-click-powered-by-pixterme/pixter-disable-right-click.php 85% from 13 tests
The primary PHP file in "Pixter Right Click Protect Images for Wordpress" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("disable-right-click-powered-by-pixterme.php" instead of "pixter-disable-right-click.php")
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
No dangerous file extensions were detected12,833 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 958 | 978 | 7,670 |
PHP | 7 | 475 | 1,410 | 2,585 |
CSS | 9 | 303 | 241 | 1,919 |
PO File | 4 | 276 | 352 | 659 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 199.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 373.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 130 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 126 | 96.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 3.08% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
25 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin-page-class/images/remove.png | 2.15KB | 1.67KB | ▼ 22.25% |
admin-icon.png | 0.76KB | 0.77KB | 0.00% |
admin-page-class/js/FancyCheckbox/images/firerift.png | 5.95KB | 2.13KB | ▼ 64.11% |
admin-page-class/css/images/ui-bg_inset-soft_95_fef1ec_1x100.png | 0.12KB | 0.16KB | 0.00% |
admin-page-class/css/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |