Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼164.79ms] Passed 4 tests
Analyzing server-side resources used by Add Link to Copied Text
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 52.09 ▲20.11 |
Dashboard /wp-admin | 3.11 ▲0.05 | 57.23 ▲9.26 |
Posts /wp-admin/edit.php | 3.17 ▲0.05 | 53.49 ▲6.73 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 95.21 ▼680.58 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 34.45 ▲5.45 |
Add Link /wp-admin/options-general.php?page=ftAddlink_options | 3.03 | 30.35 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Add Link to Copied Text
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲119 | 15.76 ▼0.18 | 11.17 ▲4.14 | 71.44 ▲16.61 |
Dashboard /wp-admin | 2,991 ▲60 | 5.92 ▲0.02 | 167.08 ▲20.35 | 138.59 ▲31.00 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.01 | 63.36 ▼2.44 | 90.49 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.78 ▼2.39 | 382.58 ▲101.87 | 121.85 ▲9.46 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.02 | 142.83 ▼15.17 | 121.57 ▼11.67 |
Add Link /wp-admin/options-general.php?page=ftAddlink_options | 1,253 | 2.21 | 55.02 | 82.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Plugin options)
- Tags: There are too many tags (16 tag instead of maximum 10)
add-link-to-copied-text/settings.php 85% from 13 tests
The main PHP script in "Add Link to Copied Text" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-link-to-copied-text.php" instead of "settings.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin317 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 24 | 184 |
JavaScript | 1 | 2 | 0 | 79 |
PO File | 1 | 16 | 16 | 51 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 25.04KB | 11.78KB | ▼ 52.97% |