Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.83ms] Passed 4 tests
Server-side resources used by Right Click Disable OR Ban
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.91 ▼4.09 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.52 ▼1.25 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.64 ▲1.12 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.90 ▲0.65 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 37.98 ▼2.62 |
Our Theme /wp-admin/edit.php?post_type=right-click-disable-or-ban&page=sr-theme-page | 3.03 | 28.63 |
Docs /wp-admin/admin.php?page=rcb-doc-page | 3.22 | 33.74 |
Right Click Disable /wp-admin/admin.php?page=right-click-disable-or-ban | 3.24 | 31.10 |
Server storage [IO: ▲1.45MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Right Click Disable OR Ban
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲77 | 14.47 ▲0.07 | 1.65 ▼0.54 | 42.46 ▼1.80 |
Dashboard /wp-admin | 2,229 ▲38 | 5.84 ▼0.05 | 114.05 ▲9.44 | 43.01 ▲1.44 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.05 ▲0.03 | 41.19 ▼0.07 | 35.94 ▲1.27 |
Add New Post /wp-admin/post-new.php | 1,566 ▲47 | 18.42 ▼4.73 | 636.78 ▲19.09 | 65.93 ▲13.82 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.21 ▼0.06 | 106.73 ▼2.32 | 42.49 ▼1.89 |
Our Theme /wp-admin/edit.php?post_type=right-click-disable-or-ban&page=sr-theme-page | 28 | 0.44 | 0.08 | 3.99 |
Docs /wp-admin/admin.php?page=rcb-doc-page | 858 | 2.02 | 25.16 | 27.40 |
Right Click Disable /wp-admin/admin.php?page=right-click-disable-or-ban | 855 | 2.16 | 26.75 | 37.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/right-click-disable-or-ban/docs.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/right-click-disable-or-ban/settings.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/right-click-disable-or-ban/right-click-disable-or-ban.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/right-click-disable-or-ban/our-theme/awp-theme.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=right-click-disable-or-ban&page=sr-theme-page
- > Network (severe)
wp-admin/edit.php?post_type=right-click-disable-or-ban&page=sr-theme-page - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
right-click-disable-or-ban/right-click-disable-or-ban.php Passed 13 tests
The entry point to "Right Click Disable OR Ban" version 1.1.17 is a PHP file that has certain tags in its header comment area
40 characters long description:
Disable Right Click On WordPress Website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,588 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 973 |
PHP | 4 | 42 | 46 | 312 |
CSS | 4 | 26 | 13 | 220 |
PO File | 1 | 32 | 32 | 83 |
PHP code Passed 2 tests
Analyzing 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.24 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |