Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.04ms] Passed 4 tests
Analyzing server-side resources used by WP Content Copy Protection
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.77 ▼2.87 |
Dashboard /wp-admin | 3.33 ▲0.02 | 44.41 ▼5.26 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.22 ▼1.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 80.39 ▼22.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.56 ▲1.16 |
WP Content Copy Protection /wp-admin/options-general.php?page=wpccp | 3.25 | 31.99 |
Server storage [IO: ▲0.48MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Content Copy Protection
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲202 | 13.96 ▼0.45 | 8.91 ▲7.09 | 41.44 ▲1.78 |
Dashboard /wp-admin | 2,213 ▲21 | 5.03 ▲0.11 | 106.55 ▼4.77 | 40.24 ▼1.65 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.98 ▼0.06 | 39.08 ▼1.96 | 37.20 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,527 ▲1 | 23.23 ▲0.02 | 682.09 ▲59.81 | 48.56 ▼6.08 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.00 | 96.22 ▼5.06 | 41.93 ▼4.69 |
WP Content Copy Protection /wp-admin/options-general.php?page=wpccp | 1,320 | 2.38 | 46.14 | 31.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-content-copy-protection/index.php
- > /wp-content/plugins/wp-content-copy-protection/includes/views/no-script.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-content-copy-protection/includes/views/settings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-content-copy-protection/includes/views/upgrade.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 80% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
wp-content-copy-protection/wpccpl.php 62% from 13 tests
Analyzing the main PHP file in "WP Content Copy Protection" version 2.0.6
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-content-copy-protection.php" instead of "wpccpl.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "3.0.1")
- Git Repository: An alternative Git repository was detected
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin6,421 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 1,202 | 356 | 4,711 |
PHP | 16 | 187 | 603 | 928 |
CSS | 6 | 69 | 0 | 504 |
SVG | 2 | 9 | 0 | 103 |
JSON | 4 | 0 | 0 | 93 |
Markdown | 1 | 35 | 0 | 44 |
XML | 1 | 6 | 8 | 24 |
YAML | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 20.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 63 | |
▷ Static methods | 36 | 57.14% |
▷ Public methods | 60 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.76% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.09MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/taison-mascot.png | 95.91KB | 22.45KB | ▼ 76.59% |