Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.92MB] [CPU: ▼37.62ms] Passed 4 tests
Server-side resources used by wordpress prevent copy paste plugin (lite)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.05 | 25.48 ▼15.83 |
Dashboard /wp-admin | 3.02 ▼0.28 | 25.52 ▼25.74 |
Posts /wp-admin/edit.php | 3.03 ▼0.33 | 25.06 ▼29.40 |
Add New Post /wp-admin/post-new.php | 3.02 ▼2.86 | 24.12 ▼79.50 |
Media Library /wp-admin/upload.php | 3.02 ▼0.20 | 24.86 ▼11.40 |
Wordpress Prevent Copy Paste /wp-admin/options-general.php?page=wpcpoptions | 3.03 | 27.77 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for wordpress prevent copy paste plugin (lite)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.14 ▼0.42 | 3.27 ▲1.26 | 43.42 ▼5.34 |
Dashboard /wp-admin | 2,199 ▲25 | 5.63 ▲0.06 | 91.17 ▼12.36 | 43.88 ▲0.82 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.00 ▼0.01 | 40.36 ▼12.09 | 36.47 ▼26.71 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.21 ▼0.08 | 662.91 ▼2.63 | 58.99 ▲1.83 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.12 ▲0.01 | 103.12 ▼17.84 | 47.92 ▼0.36 |
Wordpress Prevent Copy Paste /wp-admin/options-general.php?page=wpcpoptions | 955 | 1.99 | 23.33 | 28.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpcpoptions
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=wpcpoptions
- > Notice in wp-content/plugins/wordpress-prevent-copy-paste-plugin/admin-core.php+4
Undefined index: action
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wordpress-prevent-copy-paste-plugin/the_globals.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wordpress-prevent-copy-paste-plugin/the_globals.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wordpress-prevent-copy-paste-plugin/the_globals.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 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
Please fix the following attributes:
- Screenshots: Screenshot #1 (wordpress prevent copy paste plugin) image required
- Donate link: Please fix this invalid url: ""
wordpress-prevent-copy-paste-plugin/preventer-index.php 85% from 13 tests
The primary PHP file in "wordpress prevent copy paste plugin (lite)" version 1.4.0.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wordpress-prevent-copy-paste-plugin.php" instead of "preventer-index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 164 characters long)
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
There were no executable files found in this plugin305 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 10 | 32 | 305 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 16.67KB | 8.03KB | ▼ 51.83% |