Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼14.31ms] Passed 4 tests
Server-side resources used by Login by Zalo
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.31 ▲1.15 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.00 ▼6.68 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 55.07 ▲15.03 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 48.76 ▼59.66 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 39.17 ▲7.94 |
Server storage [IO: ▲1.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_login_zalo |
db_upgraded |
Browser metrics Passed 4 tests
Login by Zalo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.73 ▼0.56 | 1.47 ▼0.43 | 43.35 ▼1.65 |
Dashboard /wp-admin | 2,222 ▲34 | 4.84 ▼0.05 | 111.77 ▲11.18 | 42.17 ▲2.94 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▼0.00 | 40.05 ▲0.10 | 33.94 ▼0.99 |
Add New Post /wp-admin/post-new.php | 1,555 ▲13 | 18.22 ▲0.09 | 590.02 ▼23.06 | 50.15 ▼4.76 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.17 ▼0.09 | 97.98 ▼5.82 | 43.86 ▼1.53 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_login_zalo
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\HttpClients\\ZaloHttpClientInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/HttpClients/ZStreamHttpClient.php:18
- > PHP Fatal error
Uncaught Error: Class 'Zalo\\Exceptions\\ZaloSDKException' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Exceptions/ZaloOtherException.php:16
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/tests/YourClassTest.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\Http\\RequestBodyInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Http/RequestBodyUrlEncoded.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\Url\\UrlDetectionInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Url/ZaloUrlDetectionHandler.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\Http\\RequestBodyInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Http/RequestBodyRaw.php:16
- > PHP Fatal error
Uncaught Error: Class 'Zalo\\Exceptions\\ZaloSDKException' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Exceptions/ZaloClientException.php:16
- > PHP Fatal error
Uncaught Error: Class 'Zalo\\Exceptions\\ZaloSDKException' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Exceptions/ZaloOAException.php:16
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\Http\\RequestBodyInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/Http/RequestBodyMultipart.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Zalo\\HttpClients\\ZaloHttpClientInterface' not found in wp-content/plugins/login-by-zalo/libraries/vendor/zaloplatform/zalo-php-sdk/src/HttpClients/ZaloCurlHttpClient.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
login-by-zalo/login-by-zalo.php Passed 13 tests
The entry point to "Login by Zalo" version 1.0.3 is a PHP file that has certain tags in its header comment area
71 characters long description:
Integrate Zalo Login at your website easiest and simplest possible way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected5,270 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 53 | 954 | 2,413 | 4,616 |
Markdown | 1 | 65 | 0 | 287 |
CSS | 3 | 3 | 6 | 227 |
JSON | 3 | 0 | 0 | 87 |
JavaScript | 4 | 2 | 6 | 28 |
YAML | 1 | 5 | 1 | 13 |
XML | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 8.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 41 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 41 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 350 | |
▷ Static methods | 28 | 8.00% |
▷ Public methods | 318 | 90.86% |
▷ Protected methods | 16 | 4.57% |
▷ Private methods | 16 | 4.57% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 42 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 42 | 100.00% |
▷ Public constants | 42 | 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
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/zalo-logo.png | 3.36KB | 1.66KB | ▼ 50.65% |
assets/images/logo.png | 11.58KB | 6.72KB | ▼ 41.98% |