Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.80ms] Passed 4 tests
A check of server-side resources used by Contact Me on Zalo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.28 ▼4.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.54 ▼7.50 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.92 ▲0.48 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.43 ▼15.78 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.52 ▲4.61 |
Server storage [IO: ▲0.08MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Contact Me on Zalo: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.72 ▲0.50 | 1.78 ▲0.11 | 44.04 ▲3.15 |
Dashboard /wp-admin | 2,215 ▲35 | 5.55 ▼0.11 | 84.27 ▼7.39 | 87.79 ▲50.11 |
Posts /wp-admin/edit.php | 2,120 ▲20 | 1.97 ▲0.00 | 36.40 ▼4.47 | 31.39 ▼6.35 |
Add New Post /wp-admin/post-new.php | 1,542 ▲5 | 22.72 ▼2.22 | 658.90 ▲45.66 | 76.81 ▲4.00 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.19 ▲0.02 | 98.94 ▲0.64 | 68.49 ▲26.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/contact-me-on-zalo/includes/backend.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: chat zalo, zalo account, zalo, chat, zalo link
contact-me-on-zalo/contact-me-on-zalo.php Passed 13 tests
The primary PHP file in "Contact Me on Zalo" version 1.0.4 is used by WordPress to initiate all plugin functionality
19 characters long description:
Contact Me on Zalo.
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
Success! There were no dangerous files found in this plugin522 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 31 | 0 | 230 |
PHP | 4 | 51 | 134 | 227 |
PO File | 1 | 16 | 16 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/zalo-2.png | 4.97KB | 1.15KB | ▼ 76.97% |
assets/images/zalo-1.png | 9.77KB | 4.29KB | ▼ 56.09% |
assets/images/zalo-icon.png | 2.21KB | 1.07KB | ▼ 51.72% |