Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.35ms] Passed 4 tests
An overview of server-side resources used by WP-Copyright-Protection
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.73 ▲4.88 |
Dashboard /wp-admin | 3.32 ▼0.03 | 45.61 ▼16.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.17 ▼0.57 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.13 ▼20.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.13 ▲0.86 |
WP-Copyright-Protection /wp-admin/options-general.php?page=wpcp_options | 3.21 | 32.95 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Copyright-Protection
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.31 ▼1.05 | 2.27 ▲0.67 | 41.43 ▲2.66 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▼0.19 | 105.42 ▼14.13 | 40.97 ▼6.41 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.00 ▲0.02 | 39.94 ▲2.21 | 34.15 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.25 ▲4.92 | 681.68 ▲28.82 | 54.00 ▼1.32 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.18 ▼0.02 | 95.56 ▼7.84 | 45.38 ▲2.16 |
WP-Copyright-Protection /wp-admin/options-general.php?page=wpcp_options | 829 | 2.06 | 27.52 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-copyright-protection/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-copyright-protection/wp-copyright-protection.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: protection, copy, protect, copyright, image protection...
wp-copyright-protection/wp-copyright-protection.php Passed 13 tests
The main PHP file in "WP-Copyright-Protection" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
114 characters long description:
A simple way to add copyright protection to your website. Disables text copy, image copy and breaks out of iframe.
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
There were no executable files found in this plugin180 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 70 | 157 |
CSS | 1 | 6 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 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 |
thumbsup.png | 1.46KB | 1.46KB | 0.00% |
assets/image/thumbsup.png | 1.46KB | 1.46KB | 0.00% |
assets/icon-256x256.png | 22.93KB | 9.19KB | ▼ 59.94% |
assets/icon-128.png | 8.79KB | 3.88KB | ▼ 55.88% |
assets/icon-128x128.png | 8.79KB | 3.88KB | ▼ 55.88% |