Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.74ms] Passed 4 tests
Server-side resources used by Emnon Localized Link Creator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.61 ▲0.44 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.27 ▼1.78 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 51.22 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 82.93 ▼10.21 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.32 ▲0.59 |
Emnon affiliate /wp-admin/options-general.php?page=emaf_affiliate | 3.26 | 31.82 |
Server storage [IO: ▲1.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Emnon Localized Link Creator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.41 ▼0.18 | 1.55 ▼0.14 | 42.29 ▲1.62 |
Dashboard /wp-admin | 2,213 ▲25 | 5.80 ▼0.10 | 104.04 ▲4.99 | 37.64 ▼10.33 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.07 | 38.29 ▲4.01 | 31.10 ▼6.24 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 23.12 ▲0.13 | 677.17 ▲13.08 | 86.25 ▲31.28 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▲0.02 | 103.13 ▲5.92 | 45.69 ▲0.26 |
Emnon affiliate /wp-admin/options-general.php?page=emaf_affiliate | 871 | 2.17 | 32.31 | 108.46 |
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: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=emaf_affiliate
- > Notice in wp-content/plugins/emnon-localized-link-creator/settings-sub-menu.php+34
Undefined index: tab
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test
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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
emnon-localized-link-creator/emnon-affiliate.php 92% from 13 tests
The primary PHP file in "Emnon Localized Link Creator" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emnon-localized-link-creator.php" instead of "emnon-affiliate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin11,269 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 59 | 77 | 8,603 |
JavaScript | 5 | 600 | 206 | 1,727 |
PHP | 8 | 68 | 18 | 651 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/img/emaflink.png | 5.58KB | 2.96KB | ▼ 47.09% |