Benchmarks
Plugin footprint 82% 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: ▲5.37MB] [CPU: ▲29.89ms] 75% from 4 tests
Server-side resources used by Copy Anything to Clipboard
Please have a look at the following items
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.37MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.13 ▲5.67 | 71.36 ▲32.52 |
Dashboard /wp-admin | 9.15 ▲5.81 | 83.23 ▲20.67 |
Posts /wp-admin/edit.php | 9.15 ▲5.80 | 88.35 ▲38.49 |
Add New Post /wp-admin/post-new.php | 10.09 ▲4.21 | 124.18 ▲29.01 |
Media Library /wp-admin/upload.php | 9.15 ▲5.92 | 69.94 ▲37.36 |
→ Add New /wp-admin/options-general.php?page=copy-the-code | 9.15 | 68.37 |
Copy to Clipboard /wp-admin/edit.php?post_type=copy-to-clipboard | 9.15 | 86.41 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 9.15 | 63.21 |
Server storage [IO: ▲4.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 264 new files
Database: no new tables, 11 new options
New WordPress options |
---|
fs_debug_mode |
copy_the_code_fresh_user |
fs_active_plugins |
widget_theysaidso_widget |
fs_accounts |
theysaidso_admin_options |
copy-the-code-auto-version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Copy Anything to Clipboard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲188 | 13.81 ▼0.46 | 8.50 ▲6.85 | 28.40 ▼18.86 |
Dashboard /wp-admin | 2,220 ▲42 | 5.56 ▼0.11 | 90.50 ▼24.07 | 44.60 ▲2.70 |
Posts /wp-admin/edit.php | 2,131 ▲34 | 2.11 ▲0.09 | 40.29 ▲0.66 | 43.01 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 24.91 ▲1.91 | 613.82 ▼46.35 | 62.75 ▲6.54 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.19 ▲0.06 | 94.88 ▼4.27 | 44.94 ▲4.26 |
→ Add New /wp-admin/options-general.php?page=copy-the-code | 1,025 | 3.00 | 40.65 | 66.39 |
Copy to Clipboard /wp-admin/edit.php?post_type=copy-to-clipboard | 1,150 | 1.96 | 64.26 | 52.78 |
Freemius Debug [v.2.6.0] /wp-admin/admin.php?page=freemius | 1,080 | 1.66 | 23.69 | 28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 11 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- copy_the_code_fresh_user
- copy-the-code-auto-version
- fs_debug_mode
- widget_recent-posts
- fs_accounts
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/coupon/widget.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/copy-the-code/classes/class-copy-the-code-shortcode.php:46
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/code-snippet/widget.php:19
- > PHP Warning
require_once(COPY_THE_CODE_DIRclasses/class-copy-the-code-update.php): failed to open stream: No such file or directory in wp-content/plugins/copy-the-code/classes/class-copy-the-code.php on line 46
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/wish/widget.php:19
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/copy-button/widget.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-the-code/classes/opt-in/class-copy-the-code-opt-in.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_clear_scheduled_hook() in wp-content/plugins/copy-the-code/uninstall.php:3
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/message/widget.php:19
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/copy-the-code/classes/elementor/widgets/shayari/widget.php:19
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5 in copy-the-code/assets to your readme.txt
copy-the-code/copy-the-code.php 92% from 13 tests
The main PHP script in "Copy Anything to Clipboard" version 3.4.1 is automatically included on every request by WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 361 characters long)
Code Analysis 97% from 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 detected40,855 lines of code in 216 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 151 | 8,720 | 18,914 | 38,645 |
JavaScript | 23 | 267 | 270 | 1,233 |
CSS | 40 | 146 | 32 | 819 |
PO File | 1 | 53 | 63 | 142 |
XML | 1 | 3 | 0 | 16 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 3,096)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 61.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,096.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 2 | 2.60% |
▷ Concrete classes | 75 | 97.40% |
▷ Final classes | 0 | 0.00% |
Methods | 1,515 | |
▷ Static methods | 236 | 15.58% |
▷ Public methods | 1,093 | 72.15% |
▷ Protected methods | 32 | 2.11% |
▷ Private methods | 390 | 25.74% |
Functions | 104 | |
▷ Named functions | 103 | 99.04% |
▷ Anonymous functions | 1 | 0.96% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
classes/freemius/assets/img/copy-the-code.png | 10.35KB | 4.56KB | ▼ 55.95% |
classes/freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
classes/freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |