Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/copy-link/wp-copy.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WPCopy has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼55.57ms] Passed 4 tests
This is a short check of server-side resources used by CopyLink
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 7.07 ▼38.52 |
Dashboard /wp-admin | 2.11 ▼1.19 | 6.54 ▼43.21 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.02 ▼43.53 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 6.68 ▼97.03 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.88 ▼31.19 |
Link copy /wp-admin/admin.php?page=copy-link/admin/copied.php | 2.11 | 6.08 |
Settings /wp-admin/admin.php?page=copy-link/admin/settings.php | 2.11 | 6.30 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wp_copy |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
wp-copy |
Browser metrics Passed 4 tests
A check of browser resources used by CopyLink
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲137 | 13.65 ▼0.72 | 8.83 ▲6.79 | 41.88 ▼4.34 |
Dashboard /wp-admin | 2,216 ▲36 | 5.58 ▼0.09 | 85.65 ▼0.14 | 40.52 ▼4.70 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 1.97 ▼0.02 | 35.23 ▼3.52 | 34.60 ▼3.51 |
Add New Post /wp-admin/post-new.php | 1,633 ▲107 | 23.44 ▼0.24 | 614.43 ▼81.00 | 49.49 ▼3.88 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.22 ▼0.03 | 96.95 ▼16.72 | 44.26 ▼6.89 |
Link copy /wp-admin/admin.php?page=copy-link/admin/copied.php | 796 | 1.69 | 23.48 | 25.71 |
Settings /wp-admin/admin.php?page=copy-link/admin/settings.php | 857 | 2.04 | 25.44 | 27.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/copy-link/wp-copy.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WPCopy has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- 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)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=copy-link/admin/settings.php
- > Deprecated in wp-content/plugins/copy-link/wp-copy.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; WPCopy has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=copy-link/admin/copied.php
- > Notice in wp-content/plugins/copy-link/admin/copied.php+10
Undefined index: my_action
- > GET request to /wp-admin/admin.php?page=copy-link/admin/copied.php
- > Notice in wp-content/plugins/copy-link/admin/copied.php+22
Undefined index: page
- > GET request to /wp-admin/admin.php?page=copy-link/admin/copied.php
- > Notice in wp-content/plugins/copy-link/admin/copied.php+24
Undefined index: order
- > GET request to /wp-admin/admin.php?page=copy-link/admin/copied.php
- > Notice in wp-content/plugins/copy-link/admin/copied.php+25
Undefined index: order_column
- > GET request to /wp-admin/admin.php?page=copy-link/admin/settings.php
- > Notice in wp-content/plugins/copy-link/admin/settings.php+7
Undefined variable: WPPagerank
- > GET request to /wp-admin/admin.php?page=copy-link/admin/settings.php
- > Notice in wp-content/plugins/copy-link/admin/settings.php+7
Trying to get property 'plugin_domain' of non-object
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
Please fix the following
- 5× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/copy-link/wp-copy.php
- > /wp-content/plugins/copy-link/wp-copy-ajax.php
- > /wp-content/plugins/copy-link/includes/Browser.php
- > /wp-content/plugins/copy-link/admin/copied.php
- > /wp-content/plugins/copy-link/admin/settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: automatic links, material referening, relevant traffic, citations, linking process...
copy-link/wp-copy.php 92% from 13 tests
The principal PHP file in "CopyLink" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("copy-link.php" instead of "wp-copy.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,253 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 428 | 1,083 |
JavaScript | 2 | 6 | 20 | 170 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 47.83% |
▷ Protected methods | 36 | 52.17% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 55 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 55 | 100.00% |
▷ Public constants | 55 | 100.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.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 35.27KB | 15.21KB | ▼ 56.87% |
img/uparrow.png | 0.29KB | 0.19KB | ▼ 34.00% |
img/downarrow.png | 0.29KB | 0.19KB | ▼ 35.25% |