Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.04MB] [CPU: ▼0.73ms] Passed 4 tests
This is a short check of server-side resources used by Secure Copy Content Protection and Content Locking
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 49.42 ▲6.63 |
Dashboard /wp-admin | 4.34 ▲0.99 | 52.57 ▼8.87 |
Posts /wp-admin/edit.php | 4.37 ▲1.02 | 56.57 ▲9.90 |
Add New Post /wp-admin/post-new.php | 6.99 ▲1.10 | 87.04 ▼7.91 |
Media Library /wp-admin/upload.php | 4.29 ▲1.07 | 42.41 ▲7.25 |
Our Products /wp-admin/admin.php?page=secure-copy-content-protection-featured-plugins | 4.35 | 41.86 |
Copy Protection /wp-admin/admin.php?page=secure-copy-content-protection | 5.52 | 63.51 |
Subscribe to view /wp-admin/admin.php?page=secure-copy-content-protection-subscribe-to-view | 4.35 | 48.26 |
Results /wp-admin/admin.php?page=secure-copy-content-protection-results-to-view | 4.37 | 47.51 |
PRO Features /wp-admin/admin.php?page=secure-copy-content-protection-pro-features | 4.36 | 44.69 |
General Settings /wp-admin/admin.php?page=secure-copy-content-protection-settings | 4.72 | 48.12 |
Server storage [IO: ▲4.62MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 119 new files
Database: 5 new tables, 10 new options
New tables |
---|
wp_ays_sccp |
wp_ays_sccp_settings |
wp_ays_sccp_block_subscribe |
wp_ays_sccp_block_content |
wp_ays_sccp_reports |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
ays_sccp_sale_btn_for_two_months |
widget_recent-posts |
ays_sccp_sale_btn |
ays_sccp_banner_time |
sccp_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Secure Copy Content Protection and Content Locking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲243 | 13.45 ▼0.76 | 11.07 ▲8.86 | 31.46 ▼19.08 |
Dashboard /wp-admin | 2,298 ▲121 | 5.58 ▼0.06 | 92.82 ▼4.67 | 77.32 ▲33.21 |
Posts /wp-admin/edit.php | 2,221 ▲121 | 1.99 ▲0.05 | 38.92 ▼1.12 | 36.39 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,788 ▲262 | 22.18 ▼1.36 | 628.42 ▼51.14 | 48.42 ▼1.70 |
Media Library /wp-admin/upload.php | 1,515 ▲112 | 4.26 ▲0.04 | 95.79 ▼5.01 | 82.59 ▲39.40 |
Our Products /wp-admin/admin.php?page=secure-copy-content-protection-featured-plugins | 1,807 | 6.40 | 136.89 | 144.01 |
Copy Protection /wp-admin/admin.php?page=secure-copy-content-protection | 6,582 | 11.57 | 466.97 | 208.98 |
Subscribe to view /wp-admin/admin.php?page=secure-copy-content-protection-subscribe-to-view | 1,824 | 6.37 | 81.77 | 145.13 |
Results /wp-admin/admin.php?page=secure-copy-content-protection-results-to-view | 2,250 | 6.50 | 89.77 | 142.21 |
PRO Features /wp-admin/admin.php?page=secure-copy-content-protection-pro-features | 2,178 | 6.32 | 75.75 | 155.45 |
General Settings /wp-admin/admin.php?page=secure-copy-content-protection-settings | 5,004 | 7.73 | 179.81 | 171.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie tables were found after uninstall: 5 tables
- wp_ays_sccp
- wp_ays_sccp_block_content
- wp_ays_sccp_settings
- wp_ays_sccp_block_subscribe
- wp_ays_sccp_reports
- The uninstall procedure has failed, leaving 10 options in the database
- ays_sccp_sale_btn_for_two_months
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- ays_sccp_sale_btn
- widget_recent-posts
- ays_sccp_banner_time
- widget_recent-comments
- can_compress_scripts
- sccp_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 14× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/secure-copy-content-protection/admin/partials/features/secure-copy-content-protection-pro-features.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/secure-copy-content-protection/admin/partials/features/secure-copy-content-protection-featured-display.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/secure-copy-content-protection/admin/partials/settings/secure-copy-content-protection-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/secure-copy-content-protection/public/partials/secure-copy-content-protection-public-display.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 12
- > PHP Fatal error
Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/secure-copy-content-protection/db.php:28
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/secure-copy-content-protection/admin/partials/secure-copy-content-protection-admin-display.php:25
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/secure-copy-content-protection/includes/lists/class-secure-copy-content-protection-results-list-table.php:4
- > PHP Notice
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 issues were found
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:
- Screenshots: No descriptions were found for these screenshots #6, #7, #8, #9 in secure-copy-content-protection/assets to your readme.txt
secure-copy-content-protection/secure-copy-content-protection.php Passed 13 tests
The main PHP script in "Secure Copy Content Protection and Content Locking" version 3.8.2 is automatically included on every request by WordPress
117 characters long description:
Copy Protection plugin is activated it disables the right click, copy paste, content selection and copy shortcut keys
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin18,860 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 1,206 | 1,086 | 9,352 |
JavaScript | 12 | 417 | 459 | 3,638 |
CSS | 9 | 689 | 918 | 2,821 |
PO File | 2 | 964 | 1,279 | 2,489 |
SVG | 14 | 62 | 0 | 560 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 197)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 73.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 329.00 |
Average method complexity | 7.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 197.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 137 | |
▷ Static methods | 24 | 17.52% |
▷ Public methods | 131 | 95.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 4.38% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
39 PNG files occupy 1.16MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/chart_screen.png | 28.53KB | 28.86KB | 0.00% |
admin/images/avatars/pro_avatar.png | 38.46KB | 13.75KB | ▼ 64.26% |
admin/images/black_friday_banner_logo.png | 34.91KB | 35.05KB | 0.00% |
public/images/lock.png | 0.57KB | 0.52KB | ▼ 8.36% |
admin/images/features/page_blocker.png | 12.21KB | 6.31KB | ▼ 48.31% |