Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.08ms] Passed 4 tests
Analyzing server-side resources used by NUU Contact
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.16 ▼8.46 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.08 ▼0.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.83 ▲1.61 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 78.64 ▼12.76 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 39.30 ▲7.34 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
NUU Contact: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,868 ▲133 | 13.33 ▼1.03 | 1.48 ▼0.37 | 41.15 ▼1.89 |
Dashboard /wp-admin | 2,240 ▲51 | 5.97 ▲0.07 | 110.32 ▲2.28 | 78.39 ▲41.12 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.28 ▲0.14 | 39.55 ▲4.96 | 37.62 ▲2.98 |
Add New Post /wp-admin/post-new.php | 1,699 ▲166 | 22.65 ▼0.65 | 679.23 ▲1.30 | 31.44 ▼20.22 |
Media Library /wp-admin/upload.php | 1,416 ▲34 | 4.35 ▲0.17 | 98.31 ▲0.51 | 72.49 ▲28.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/nuu-contact/includes/view-admin.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
3 plugin tags: nut goi dien, nut lien lac, lien lac
nuu-contact/nuu-contact.php Passed 13 tests
The principal PHP file in "NUU Contact" v. 1.0 is loaded by WordPress automatically on each request
28 characters long description:
Fixed contact on the screen.
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
Success! There were no dangerous files found in this plugin344 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 11 | 1 | 175 |
PHP | 4 | 29 | 16 | 166 |
JavaScript | 1 | 2 | 1 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 5.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.67% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/zalo.png | 7.44KB | 1.91KB | ▼ 74.36% |
assets/images/call.png | 0.93KB | 0.37KB | ▼ 59.98% |
assets/images/messenger.png | 4.51KB | 1.44KB | ▼ 68.01% |
assets/images/nuu-logo.png | 3.44KB | 0.70KB | ▼ 79.57% |