Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼138.60ms] Passed 4 tests
A check of server-side resources used by Lay Tin vnExpress cho WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.13 ▲0.40 | 30.41 ▲10.50 |
Dashboard /wp-admin | 3.42 ▲0.36 | 48.70 ▲5.21 |
Posts /wp-admin/edit.php | 3.47 ▲0.36 | 50.10 ▲12.94 |
Add New Post /wp-admin/post-new.php | 5.72 ▲0.28 | 93.00 ▼564.00 |
Media Library /wp-admin/upload.php | 3.30 ▲0.29 | 28.42 ▼6.12 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Lay Tin vnExpress cho WordPress: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲127 | 15.89 ▲0.24 | 10.34 ▲1.43 | 46.84 ▼0.78 |
Dashboard /wp-admin | 2,979 ▲45 | 5.88 ▼0.06 | 146.86 ▲6.97 | 108.16 ▼5.58 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.00 | 72.24 ▲10.08 | 94.41 ▲4.45 |
Add New Post /wp-admin/post-new.php | 1,685 ▲13 | 18.82 ▲0.30 | 386.48 ▲20.70 | 115.35 ▲5.78 |
Media Library /wp-admin/upload.php | 1,833 ▲23 | 5.03 ▼0.03 | 146.78 ▲1.12 | 119.54 ▲2.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/lay-tin-vnexpress/lay-tin.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: thit k web, plugin tin tuc, wordpress, lay tin, plugin...
lay-tin-vnexpress/lay-tin.php 77% from 13 tests
The principal PHP file in "Lay Tin vnExpress cho WordPress" v. 1.0.9 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("lay-tin-vnexpress.php" instead of "lay-tin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 501 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,755 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 312 | 349 | 1,669 |
PO File | 1 | 17 | 17 | 86 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 122.33 |
▷ Minimum class complexity | 40.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 3 | 3.26% |
▷ Public methods | 76 | 82.61% |
▷ Protected methods | 16 | 17.39% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.62MB with 0.38MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/3.png | 180.85KB | 76.60KB | ▼ 57.64% |
images/4.png | 83.10KB | 33.54KB | ▼ 59.64% |
images/2.png | 373.70KB | 132.04KB | ▼ 64.67% |