Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/lao-fonts/main.php+46
Trying to get property 'option_value' of non-object
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.71ms] Passed 4 tests
A check of server-side resources used by Lao Fonts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 6.00 ▼37.03 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.98 ▼47.04 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 7.81 ▼42.54 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.52 ▼92.22 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 7.24 ▼29.85 |
Server storage [IO: ▲2.96MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lao Fonts
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.34 ▼0.24 | 1.87 ▼0.02 | 48.06 ▲3.95 |
Dashboard /wp-admin | 2,217 ▲43 | 5.64 ▲0.06 | 95.02 ▼1.73 | 36.68 ▼8.43 |
Posts /wp-admin/edit.php | 2,122 ▲22 | 2.03 ▼0.10 | 35.69 ▼1.67 | 30.39 ▼8.70 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.25 ▼0.36 | 672.69 ▼34.54 | 50.62 ▼5.83 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.20 ▲0.01 | 114.37 ▲8.19 | 40.67 ▼6.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/lao-fonts/main.php+46
Trying to get property 'option_value' of non-object
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/lao-fonts/options.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: lao for wordpress, phetsarath wp, lao sans pro, saysettha, saysettha ot...
lao-fonts/main.php 85% from 13 tests
"Lao Fonts" version 2.3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("lao-fonts.php" instead of "main.php")
- Description: The description should be shorter than 140 characters (currently 288 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
Everything looks great! No dangerous files found in this plugin2,138 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 19 | 0 | 1,572 |
PHP | 2 | 41 | 20 | 377 |
CSS | 17 | 16 | 15 | 189 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 28.12KB | 10.65KB | ▼ 62.14% |
assets/facebook.png | 6.05KB | 3.26KB | ▼ 46.19% |
assets/bcelone.png | 30.74KB | 13.54KB | ▼ 55.95% |