Benchmarks
Plugin footprint 65% 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: ▲1.67MB] [CPU: ▲8.58ms] Passed 4 tests
A check of server-side resources used by LeSeo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.13 ▲1.67 | 45.93 ▲7.25 |
Dashboard /wp-admin | 4.98 ▲1.67 | 55.02 ▲8.96 |
Posts /wp-admin/edit.php | 5.03 ▲1.67 | 62.20 ▲15.68 |
Add New Post /wp-admin/post-new.php | 7.56 ▲1.67 | 104.34 ▲2.41 |
Media Library /wp-admin/upload.php | 4.90 ▲1.67 | 51.66 ▲16.37 |
Server storage [IO: ▲1.90MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 164 new files
Database: no new tables, 7 new options
New WordPress options |
---|
_lezaiyun_leseo_option |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by LeSeo
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲104 | 13.21 ▼1.42 | 1.64 ▼0.09 | 40.17 ▼8.13 |
Dashboard /wp-admin | 2,245 ▲57 | 5.80 ▼0.27 | 111.52 ▲7.46 | 52.80 ▲8.43 |
Posts /wp-admin/edit.php | 2,128 ▲39 | 2.05 ▲0.04 | 39.87 ▼1.94 | 45.75 ▲11.44 |
Add New Post /wp-admin/post-new.php | 1,573 ▲44 | 18.68 ▲0.34 | 649.45 ▲45.37 | 56.33 ▲1.91 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▲0.03 | 100.53 ▲1.88 | 53.78 ▲8.84 |
SEO优化 /wp-admin/admin.php?page=lezaiyun-leseo-options#tab=seo%e4%bc%98%e5%8c%96 | 1,725 | 3.88 | 60.87 | 155.72 |
基础优化 /wp-admin/admin.php?page=lezaiyun-leseo-options#tab=%e5%9f%ba%e7%a1%80%e4%bc%98%e5%8c%96 | 1,743 | 3.52 | 49.27 | 81.71 |
功能优化 /wp-admin/admin.php?page=lezaiyun-leseo-options#tab=%e5%8a%9f%e8%83%bd%e4%bc%98%e5%8c%96 | 1,743 | 3.41 | 48.76 | 69.58 |
搜索推送 /wp-admin/admin.php?page=lezaiyun-leseo-options#tab=%e6%90%9c%e7%b4%a2%e6%8e%a8%e9%80%81 | 1,736 | 3.73 | 50.66 | 76.50 |
插件说明 /wp-admin/admin.php?page=lezaiyun-leseo-options#tab=%e6%8f%92%e4%bb%b6%e8%af%b4%e6%98%8e | 1,725 | 3.72 | 50.20 | 56.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/leseo/leseo.php+243
Undefined index: Delete
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/leseo/leseo-admin-options.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #2, #3, #4 in leseo/assets to your readme.txt
leseo/leseo.php Passed 13 tests
The main PHP file in "LeSeo" ver. 0.4.2 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
LeSeo,一个比较全面、免费的WordPress SEO插件。
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin39,873 lines of code in 138 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 91 | 3,619 | 1,574 | 16,261 |
JavaScript | 5 | 1,300 | 497 | 6,564 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
CSS | 4 | 376 | 509 | 4,872 |
SVG | 2 | 0 | 0 | 2 |
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.61 |
Average class complexity | 26.61 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 6.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 285 | |
▷ Static methods | 42 | 14.74% |
▷ Public methods | 284 | 99.65% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.35% |
Functions | 29 | |
▷ Named functions | 26 | 89.66% |
▷ Anonymous functions | 3 | 10.34% |
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
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
screenshot.png | 36.32KB | 2.97KB | ▼ 91.82% |