Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.10ms] Passed 4 tests
A check of server-side resources used by WP Anti Copy - Protect your precious content from copying
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.03 ▼0.17 |
Dashboard /wp-admin | 3.39 ▲0.09 | 55.15 ▲5.97 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 50.09 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 87.44 ▼3.46 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 38.18 ▲1.56 |
Server storage [IO: ▲7.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 66 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_anticopy |
New WordPress options |
---|
wpanticpy_prevent_indexes |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Anti Copy - Protect your precious content from copying
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲156 | 13.60 ▼0.70 | 5.64 ▲3.17 | 42.07 ▼0.92 |
Dashboard /wp-admin | 2,225 ▲34 | 5.85 ▼0.04 | 110.48 ▲6.28 | 44.79 ▲2.10 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.01 ▲0.01 | 36.74 ▲1.57 | 35.76 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 23.29 ▲0.25 | 681.30 ▲5.64 | 73.50 ▲19.01 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.23 ▲0.01 | 101.88 ▼1.90 | 43.65 ▼4.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'anticopy_remove_database' not found or invalid function name
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_anticopy
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- wpanticpy_prevent_indexes
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-anti-copy/copy-sequence/user_not_verified_bonus.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-anti-copy/copy-sequence/user_not_verified.php:24
- > 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 on the user side
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-anti-copy/assets to your readme.txt
wp-anti-copy/index.php 92% from 13 tests
This is the main PHP file of "WP Anti Copy - Protect your precious content from copying" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-anti-copy.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin22,567 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,467 | 52 | 13,546 |
JavaScript | 7 | 2,028 | 1,717 | 7,970 |
PHP | 7 | 114 | 13 | 1,051 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 8 | 57.14% |
▷ Anonymous functions | 6 | 42.86% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) copy-sequence/asset/img/blue-icon-security.png | 13.74KB | 0.00KB | ▼ 100.00% |
(invalid) assets/img/tekniklogo.png | 2.22KB | 0.00KB | ▼ 100.00% |
(invalid) tekniklogo.png | 2.22KB | 0.00KB | ▼ 100.00% |