Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼0.46ms] Passed 4 tests
This is a short check of server-side resources used by Masoffer Dynamic Link
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.87 ▼2.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 61.61 ▲8.80 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.36 ▼4.58 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.35 ▲6.01 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.89 ▼0.97 |
MasOffer Dynamic Link /wp-admin/options-general.php?page=masoffer-dynamic-link-official | 3.24 | 34.81 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Masoffer Dynamic Link: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.59 ▼0.97 | 1.76 ▲0.09 | 44.16 ▼5.23 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲1.00 | 97.80 ▼17.26 | 39.99 ▼1.57 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 1.99 ▼0.01 | 36.82 ▲0.92 | 33.88 ▲2.89 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.09 ▼5.10 | 632.32 ▼40.30 | 47.92 ▲0.39 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.04 | 95.19 ▼6.09 | 42.68 ▼1.33 |
MasOffer Dynamic Link /wp-admin/options-general.php?page=masoffer-dynamic-link-official | 971 | 2.03 | 25.54 | 45.23 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- 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
Everything seems fine, however this is by no means an exhaustive test
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/masoffer-dynamic-link/views/admin.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/masoffer-dynamic-link/masoffer-dynamic-link.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 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
2 plugin tags: affiliate, marketing
masoffer-dynamic-link/masoffer-dynamic-link.php Passed 13 tests
The main PHP file in "Masoffer Dynamic Link" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
44 characters long description:
Plugin hỗ trợ redirect link sản phẩm
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 plugin241 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 25 | 10 | 241 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 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 | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/mo2-300x51.png | 12.21KB | 6.37KB | ▼ 47.81% |