Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▼307.19ms] 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.69 ▲1.18 | 83.61 ▲19.07 |
Dashboard /wp-admin | 4.20 ▲0.79 | 45.37 ▼6.80 |
Posts /wp-admin/edit.php | 4.41 ▲0.77 | 50.33 ▲7.24 |
Add New Post /wp-admin/post-new.php | 8.05 ▲1.08 | 98.26 ▼1,221.08 |
Media Library /wp-admin/upload.php | 4.16 ▲0.87 | 41.19 ▼8.12 |
Results /wp-admin/admin.php?page=secure-copy-content-protection-results-to-view | 4.25 | 41.43 |
Subscribe to view /wp-admin/admin.php?page=secure-copy-content-protection-subscribe-to-view | 4.23 | 37.63 |
Our Products /wp-admin/admin.php?page=secure-copy-content-protection-featured-plugins | 4.23 | 37.56 |
Copy Protection /wp-admin/admin.php?page=secure-copy-content-protection | 5.33 | 51.29 |
General Settings /wp-admin/admin.php?page=secure-copy-content-protection-settings | 4.24 | 43.71 |
PRO Features /wp-admin/admin.php?page=secure-copy-content-protection-pro-features | 4.23 | 35.73 |
Server storage [IO: ▲3.64MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 94 new files
Database: 5 new tables, 3 new options
New tables |
---|
wp_ays_sccp_block_subscribe |
wp_ays_sccp |
wp_ays_sccp_reports |
wp_ays_sccp_settings |
wp_ays_sccp_block_content |
New WordPress options |
---|
ays_sccp_sale_notification_spring |
sccp_db_version |
ays_sccp_sale_dismiss_for_two_month_spring |
Browser metrics Passed 4 tests
Secure Copy Content Protection and Content Locking: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,042 ▲297 | 16.49 ▲1.12 | 19.17 ▲10.98 | 2.97 ▼0.51 |
Dashboard /wp-admin | 3,024 ▲100 | 6.44 ▲0.01 | 186.09 ▼19.53 | 215.48 ▲14.75 |
Posts /wp-admin/edit.php | 2,786 ▲65 | 3.43 ▼0.01 | 87.73 ▼8.69 | 188.61 ▲10.27 |
Add New Post /wp-admin/post-new.php | 1,707 ▲94 | 16.03 ▼4.60 | 651.95 ▲8.46 | 220.30 ▲11.68 |
Media Library /wp-admin/upload.php | 1,792 ▲65 | 5.75 ▲0.01 | 186.91 ▼13.86 | 282.03 ▲24.56 |
Results /wp-admin/admin.php?page=secure-copy-content-protection-results-to-view | 2,671 | 8.79 | 198.33 | 379.55 |
Subscribe to view /wp-admin/admin.php?page=secure-copy-content-protection-subscribe-to-view | 2,102 | 8.63 | 193.04 | 408.67 |
Our Products /wp-admin/admin.php?page=secure-copy-content-protection-featured-plugins | 2,088 | 8.18 | 135.99 | 385.58 |
Copy Protection /wp-admin/admin.php?page=secure-copy-content-protection | 10,769 | 17.19 | 560.10 | 498.75 |
General Settings /wp-admin/admin.php?page=secure-copy-content-protection-settings | 2,475 | 8.44 | 140.95 | 414.43 |
PRO Features /wp-admin/admin.php?page=secure-copy-content-protection-pro-features | 2,745 | 8.42 | 138.59 | 385.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables detected upon uninstall: 5 tables
- wp_ays_sccp_reports
- wp_ays_sccp_settings
- wp_ays_sccp_block_content
- wp_ays_sccp_block_subscribe
- wp_ays_sccp
- The uninstall procedure has failed, leaving 3 options in the database
- ays_sccp_sale_notification_spring
- ays_sccp_sale_dismiss_for_two_month_spring
- sccp_db_version
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following items
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > 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 Fatal error
Uncaught Error: Class 'Secure_Copy_Content_Protection_Subscribe_Actions' not found in wp-content/plugins/secure-copy-content-protection/admin/partials/subscribe/secure-copy-content-protection-subscribe-display.php:2
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 8
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 16
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/secure-copy-content-protection/db.php on line 20
- > 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 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 12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/secure-copy-content-protection/admin/partials/features/secure-copy-content-protection-featured-display.php:5
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require 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 primary PHP file in "Secure Copy Content Protection and Content Locking" version 3.0.6 is used by WordPress to initiate all plugin functionality
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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected14,843 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 902 | 1,017 | 7,388 |
JavaScript | 12 | 383 | 431 | 3,419 |
CSS | 9 | 352 | 55 | 1,955 |
PO File | 2 | 705 | 950 | 1,618 |
SVG | 4 | 62 | 0 | 463 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Please reduce cyclomatic complexity of methods to less than 100 (currently 192)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 55.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 220.00 |
Average method complexity | 7.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 192.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 | 117 | |
▷ Static methods | 16 | 13.68% |
▷ Public methods | 111 | 94.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 5.13% |
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
32 PNG files occupy 0.96MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icons/icon-popup-128x128.png | 2.17KB | 2.17KB | 0.05% |
admin/images/winter-backround-bundle.png | 195.70KB | 95.87KB | ▼ 51.01% |
admin/images/sale.png | 1.96KB | 1.92KB | ▼ 1.70% |
admin/images/pngegg110.png | 8.90KB | 4.03KB | ▼ 54.73% |
admin/images/winter_bundle_logo.png | 25.05KB | 6.65KB | ▼ 73.46% |