Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.78ms] Passed 4 tests
This is a short check of server-side resources used by MinhNhut Link Gateway
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.07 ▼6.48 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.50 ▼4.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.86 ▼2.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.36 ▲3.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.94 ▲2.33 |
Link Gate Redirector /wp-admin/options-general.php?page=linkgate | 3.21 | 32.86 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 14 new options
New WordPress options |
---|
mn_linkgate_page_go |
mn_linkgate_page_description |
mn_linkgate_page_created |
mn_linkgate_page_delay |
mn_linkgate_page_slug |
widget_theysaidso_widget |
can_compress_scripts |
mn_linkgate_page_back |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
Checking browser requirements for MinhNhut Link Gateway
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.09 | 1.66 ▼0.33 | 41.20 ▼1.70 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼1.03 | 99.37 ▼14.56 | 39.83 ▼5.25 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.02 | 39.62 ▲3.53 | 35.94 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.26 ▲0.06 | 614.02 ▼62.86 | 48.38 ▼12.87 |
Media Library /wp-admin/upload.php | 1,395 ▲13 | 4.24 ▼0.02 | 97.64 ▼3.02 | 40.73 ▼2.81 |
Link Gate Redirector /wp-admin/options-general.php?page=linkgate | 955 | 2.03 | 24.60 | 33.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 14 options in the database
- db_upgraded
- mn_linkgate_page_go
- theysaidso_admin_options
- mn_linkgate_page_title
- mn_linkgate_page_description
- widget_recent-comments
- mn_linkgate_page_created
- mn_linkgate_page_back
- mn_linkgate_back_url
- widget_recent-posts
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/minhnhut-link-gateway/classes.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/minhnhut-link-gateway/templates/default/index.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (The screenshot description corresponds to screenshot-1.(png|jpg|jpeg|gif).), #2 (The screenshot description corresponds to screenshot-2.(png|jpg|jpeg|gif).), #3 (The screenshot description corresponds to screenshot-3.(png|jpg|jpeg|gif).)
minhnhut-link-gateway/linkgate.php 85% from 13 tests
The main file in "MinhNhut Link Gateway" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 194 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("minhnhut-link-gateway.php" instead of "linkgate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected247 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 47 | 239 |
CSS | 1 | 1 | 5 | 8 |
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.10 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 2 | 14.29% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.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
There were not PNG files found in your plugin