Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.39ms] Passed 4 tests
A check of server-side resources used by [凹凸曼]显示IP归属地
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.91 ▲1.18 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.43 ▲3.28 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.55 ▲3.88 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.05 | 91.55 ▼3.29 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.86 ▲0.37 |
settings /wp-admin/options-general.php?page=apoyl-ip-settings | 3.26 | 33.48 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_ip |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
apoyl_ip_db_version |
widget_theysaidso_widget |
apoyl-ip-settings |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by [凹凸曼]显示IP归属地
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲72 | 14.27 ▼0.07 | 1.76 ▼0.01 | 38.84 ▼5.82 |
Dashboard /wp-admin | 2,202 ▲24 | 5.58 ▼0.03 | 91.87 ▼23.81 | 40.10 ▼1.69 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.01 ▲0.05 | 36.65 ▼3.03 | 30.72 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.33 ▼1.68 | 704.59 ▲68.64 | 52.84 ▼35.50 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.04 | 95.13 ▼0.45 | 40.81 ▼4.27 |
settings /wp-admin/options-general.php?page=apoyl-ip-settings | 922 | 1.99 | 22.29 | 28.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_apoyl_ip
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- apoyl_ip_db_version
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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
Everything seems fine, however this is by no means an exhaustive test
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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/apoyl-ip/public/partials/public-display.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-ip/admin/partials/setting.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/apoyl-ip/admin/partials/nav.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: ip, geolocation, ip address
apoyl-ip/apoyl-ip.php Passed 13 tests
The entry point to "[凹凸曼]显示IP归属地" version 1.4.0 is a PHP file that has certain tags in its header comment area
110 characters long description:
实现发布文章记录IP地址,用户发布文章显示IP归属地,更加方便了解用户来自哪里.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin396 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 105 | 150 | 393 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot 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.17 |
Average class complexity | 2.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 4 | 13.33% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin