Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/tg-copy-protection/tg-copy-protection.php+178
Use of undefined constant tg_copy_protection_enq_script - assumed 'tg_copy_protection_enq_script' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.11ms] Passed 4 tests
Analyzing server-side resources used by TG Copy Protection
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.75 ▼33.52 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.64 ▼50.33 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.99 ▼46.17 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 7.09 ▼90.41 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.80 ▼29.88 |
TG Copy Protection /wp-admin/options-general.php?page=tg_copy_protection | 2.09 | 7.91 |
Server storage [IO: ▲0.18MB] [DB: ▲0.31MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
tg_copy_protection_options |
Browser metrics Passed 4 tests
Checking browser requirements for TG Copy Protection
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲122 | 13.35 ▼1.00 | 8.10 ▲6.42 | 39.82 ▼5.79 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.04 | 89.19 ▼14.62 | 40.91 ▼19.60 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.07 | 41.60 ▲0.22 | 35.85 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,367 ▼159 | 17.14 ▼6.31 | 584.24 ▼109.96 | 47.37 ▼8.77 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.09 ▼0.19 | 110.73 ▲10.30 | 48.38 ▲3.26 |
TG Copy Protection /wp-admin/options-general.php?page=tg_copy_protection | 851 | 2.02 | 26.74 | 31.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.31MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/tg-copy-protection/tg-copy-protection.php+178
Use of undefined constant tg_copy_protection_enq_script - assumed 'tg_copy_protection_enq_script' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=tg_copy_protection
- > Warning in wp-content/plugins/tg-copy-protection/tg-copy-protection.php+178
Use of undefined constant tg_copy_protection_enq_script - assumed 'tg_copy_protection_enq_script' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=tg_copy_protection
- > Warning in wp-content/plugins/tg-copy-protection/tg-copy-protection.php+179
Use of undefined constant tg_copy_protection_new_code - assumed 'tg_copy_protection_new_code' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=tg_copy_protection
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=tg_copy_protection
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tg-copy-protection/tg-copy-protection.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (TG Copy Protection plugin settings interface (Settings -> TG Copy Protection).), #2 (How to access TG Copy Protection plugin settings interface from admin screen of your WordPress website.), #3 (See in action, how the copyright and credit-link or backlink of your page from where the text was copied, appears along with copied text (this is only an optional setting in plugin).)
tg-copy-protection/tg-copy-protection.php 92% from 13 tests
"TG Copy Protection" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin184 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 35 | 40 | 184 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
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 | 10 | |
▷ Named functions | 10 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.16MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 68.36KB | 41.85KB | ▼ 38.78% |
screenshot-3.png | 77.67KB | 39.39KB | ▼ 49.29% |
screenshot-2.png | 15.64KB | 8.55KB | ▼ 45.34% |