Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.94ms] Passed 4 tests
Server-side resources used by Smart Copy Protect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.29 ▲0.12 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.27 ▼2.31 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.81 ▼2.77 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.95 ▼22.81 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.75 ▲4.44 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Smart Copy Protect
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲80 | 13.23 ▼1.04 | 5.28 ▲3.22 | 37.34 ▼3.13 |
Dashboard /wp-admin | 2,203 ▲18 | 4.86 ▼0.02 | 116.23 ▲13.63 | 42.20 ▼2.19 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 1.99 ▼0.01 | 39.23 ▼2.03 | 33.76 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,532 ▲140 | 23.43 ▲5.14 | 651.24 ▼52.06 | 63.68 ▲6.81 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.19 ▲0.00 | 97.06 ▼18.80 | 43.28 ▼2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
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 | 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smart-copy-protect/smartcopy-protect.php:106
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 to be fixed:
- Contributors: Contributors not specified
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
smart-copy-protect/smartcopy-protect.php 85% from 13 tests
The main PHP file in "Smart Copy Protect" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("smart-copy-protect.php" instead of "smartcopy-protect.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected69 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 17 | 69 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 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
PNG images were not found in this plugin