Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.38ms] Passed 4 tests
A check of server-side resources used by 51la Analysis
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.10 ▼4.29 |
Dashboard /wp-admin | 3.32 ▲0.02 | 43.63 ▼5.44 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.10 ▼5.38 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 95.40 ▲2.92 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 33.52 ▲1.58 |
51LA网站统计 /wp-admin/options-general.php?page=51la-analysis-settings | 3.37 | 31.61 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 14 new options
New WordPress options |
---|
_51la_v6_event_ |
_51la_vendors_sk_ |
_51la_vendors_mmodule_id_ |
can_compress_scripts |
widget_recent-posts |
_51la_vendors_ |
theysaidso_admin_options |
_51la_vendors_ak_ |
db_upgraded |
_51la_site_version_ |
... |
Browser metrics Passed 4 tests
A check of browser resources used by 51la Analysis
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.13 ▼1.22 | 1.75 ▼0.71 | 42.50 ▼10.42 |
Dashboard /wp-admin | 2,213 ▲22 | 4.87 ▲0.02 | 106.75 ▲5.02 | 45.74 ▲4.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.02 | 35.81 ▲1.00 | 37.06 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.29 ▲0.12 | 604.58 ▼78.85 | 53.73 ▲3.37 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▲0.02 | 96.38 ▼20.39 | 43.73 ▼4.22 |
51LA网站统计 /wp-admin/options-general.php?page=51la-analysis-settings | 1,065 | 2.04 | 25.21 | 125.84 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 14 options in the database
- _51la_vendors_mmodule_id_
- widget_recent-posts
- can_compress_scripts
- _51la_site_imoport_type_
- _51la_vendors_
- db_upgraded
- _51la_vendors_sk_
- _51la_vendors_ak_
- _51la_site_version_
- _51la_v6_event_
- ...
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/51la-analysis/index.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
1 plugin tags: 51la
51la-analysis/index.php 77% from 13 tests
"51la Analysis" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("51la-analysis.php" instead of "index.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 377 characters long)
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
Good job! No executable or dangerous file extensions detected359 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 25 | 26 | 357 |
SVG | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 3.60 |
▷ 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 | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 10 | 90.91% |
▷ Class constants | 1 | 9.09% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.30MB with 0.21MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/static/v6-label.png | 72.00KB | 20.97KB | ▼ 70.87% |
admin/static/v5-label.png | 99.97KB | 22.90KB | ▼ 77.09% |
admin/static/v5-id.png | 74.09KB | 24.92KB | ▼ 66.36% |
admin/static/v6-id.png | 60.95KB | 19.85KB | ▼ 67.44% |