Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼174.10ms] Passed 4 tests
A check of server-side resources used by Polylang Duplicate Content Addon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.12 | 42.26 ▲8.72 |
Dashboard /wp-admin | 3.20 ▲0.14 | 49.83 ▲0.63 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 49.54 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 90.55 ▼693.53 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 36.80 ▼0.66 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 4 new options
New WordPress options |
---|
dupcap-ratingDiv |
dupcap-v |
dupcap-installDate |
dupcap-type |
Browser metrics Passed 4 tests
Checking browser requirements for Polylang Duplicate Content Addon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲113 | 15.95 ▲0.39 | 12.12 ▲0.01 | 51.66 ▼1.68 |
Dashboard /wp-admin | 2,973 ▲39 | 5.95 ▼0.01 | 150.02 ▼9.48 | 125.65 ▲1.53 |
Posts /wp-admin/edit.php | 2,745 ▲6 | 2.72 ▲0.00 | 64.88 ▼3.34 | 102.54 ▲10.95 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 18.77 ▼0.02 | 400.21 ▼2.22 | 114.57 ▼5.22 |
Media Library /wp-admin/upload.php | 1,813 ▲6 | 5.05 ▲0.03 | 168.00 ▲5.78 | 122.06 ▼7.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 4 options
- dupcap-v
- dupcap-installDate
- dupcap-ratingDiv
- dupcap-type
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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 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
5 plugin tags: clone, polylang, duplicate, language, translation
duplicate-content-addon-for-polylang/duplicate-content-addon-for-polylang.php 92% from 13 tests
The principal PHP file in "Polylang Duplicate Content Addon" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- 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 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected607 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 199 | 106 | 558 |
CSS | 1 | 0 | 0 | 28 |
JavaScript | 2 | 6 | 0 | 21 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 40.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 24 | |
▷ Static methods | 3 | 12.50% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/dupcap-logo.png | 4.76KB | 2.36KB | ▼ 50.40% |