Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.97ms] Passed 4 tests
This is a short check of server-side resources used by Copy To Clipboard - mobile + web
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.23 ▲1.46 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.80 ▼1.04 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.31 ▼5.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.19 ▼7.96 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.06 ▼5.78 |
Copy To Clipboard /wp-admin/options-general.php?page=pw-clippy_list_options | 3.21 | 26.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
pw-clippy |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Copy To Clipboard - mobile + web
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲69 | 14.28 ▼0.08 | 2.28 ▲0.68 | 44.10 ▲0.10 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▲0.08 | 85.06 ▼8.12 | 39.68 ▼3.20 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.98 ▲0.01 | 34.62 ▼2.34 | 33.70 ▼1.31 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.01 ▼0.44 | 594.67 ▼133.55 | 47.51 ▼5.31 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.03 | 97.65 ▼13.54 | 43.69 ▼5.13 |
Copy To Clipboard /wp-admin/options-general.php?page=pw-clippy_list_options | 800 | 2.01 | 24.30 | 24.42 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/copy-to-clipboard-mobile-web/pw-clipboard.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3 in copy-to-clipboard-mobile-web/assets to your readme.txt
copy-to-clipboard-mobile-web/pw-clipboard.php 85% from 13 tests
The main PHP script in "Copy To Clipboard - mobile + web" version 2.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("copy-to-clipboard-mobile-web.php" instead of "pw-clipboard.php")
- Description: Keep the plugin description shorter than 140 characters (currently 407 characters long)
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
Success! There were no dangerous files found in this plugin217 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 28 | 19 | 130 |
JavaScript | 2 | 6 | 6 | 45 |
CSS | 1 | 2 | 0 | 42 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin