Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.95ms] Passed 4 tests
This is a short check of server-side resources used by IPUA - IP 属地和 User-Agent 插件
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.22 | 44.92 ▼1.08 |
Dashboard /wp-admin | 3.64 ▲0.29 | 57.15 ▼4.58 |
Posts /wp-admin/edit.php | 3.70 ▲0.33 | 54.72 ▲6.80 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 90.30 ▼8.43 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.83 ▲2.30 |
WP-IPUA /wp-admin/options-general.php?page=wp-ipua | 3.48 | 41.47 |
Server storage [IO: ▲10.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wp_ipua_about |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
wp_ipua_setting |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for IPUA - IP 属地和 User-Agent 插件
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 14.84 ▲0.48 | 1.89 ▲0.25 | 44.15 ▲1.15 |
Dashboard /wp-admin | 2,356 ▲179 | 6.35 ▲0.69 | 126.49 ▲37.85 | 43.72 ▲4.40 |
Posts /wp-admin/edit.php | 2,281 ▲181 | 3.56 ▲1.53 | 47.56 ▲6.77 | 32.69 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.65 ▲0.56 | 618.13 ▼60.06 | 34.24 ▼17.41 |
Media Library /wp-admin/upload.php | 1,421 ▲21 | 4.35 ▲0.16 | 85.14 ▼20.60 | 43.57 ▼4.81 |
WP-IPUA /wp-admin/options-general.php?page=wp-ipua | 1,249 | 3.54 | 46.56 | 90.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just 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 HaoZiTeam\\IPUA\\plugin_dir_path() in wp-content/plugins/wp-ipua/wp-ipua.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Contributors: No tags were detected
- Contributors: Plugin contributors field is missing
wp-ipua/wp-ipua.php 85% from 13 tests
The main file in "IPUA - IP 属地和 User-Agent 插件" v. 2.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "5.6.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin2,021 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 406 | 692 | 1,904 |
JSON | 3 | 0 | 0 | 109 |
Markdown | 1 | 6 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 26.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 21 | 22.83% |
▷ Public methods | 83 | 90.22% |
▷ Protected methods | 4 | 4.35% |
▷ Private methods | 5 | 5.43% |
Functions | 15 | |
▷ Named functions | 6 | 40.00% |
▷ Anonymous functions | 9 | 60.00% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin