Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.05ms] Passed 4 tests
Analyzing server-side resources used by WPICP License
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.70 ▼0.50 |
Dashboard /wp-admin | 3.37 ▲0.02 | 49.89 ▼20.10 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 49.89 ▼2.39 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.72 ▼5.21 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 39.66 ▲1.81 |
ICP License /wp-admin/options-general.php?page=wpicp_license_settings | 3.26 | 34.14 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/wpicp-license/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WPICP License
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲83 | 13.21 ▼1.15 | 1.70 ▼0.03 | 40.55 ▼2.43 |
Dashboard /wp-admin | 2,228 ▲34 | 5.05 ▲0.19 | 98.40 ▼16.30 | 43.23 ▲0.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 40.01 ▼1.83 | 38.62 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,557 ▲3 | 18.44 ▼0.04 | 613.19 ▼6.13 | 56.60 ▼9.09 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.02 | 100.47 ▼8.89 | 40.03 ▼5.90 |
ICP License /wp-admin/options-general.php?page=wpicp_license_settings | 999 | 2.02 | 24.09 | 29.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpicp-license/wpicp-license.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: icp, icp license, icp beian
wpicp-license/wpicp-license.php Passed 13 tests
"WPICP License" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
Must-have for WordPress sites in China, showing your ICP license.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin505 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 105 | 107 | 281 |
PHP | 2 | 41 | 45 | 224 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 14 | |
▷ Named functions | 14 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gongan.png | 3.74KB | 1.17KB | ▼ 68.62% |