Benchmarks
Plugin footprint 83% 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.28MB] [CPU: ▲0.99ms] Passed 4 tests
Analyzing server-side resources used by whats-my-ip
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 49.66 ▲1.74 |
Dashboard /wp-admin | 3.58 ▲0.28 | 47.27 ▲0.91 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 47.52 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 110.18 ▲4.05 |
Media Library /wp-admin/upload.php | 3.50 ▲0.28 | 36.85 ▲1.92 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 233 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_whats-my-ip-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
whats-my-ip: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.19 ▼1.39 | 1.82 ▼0.36 | 43.53 ▼1.76 |
Dashboard /wp-admin | 2,209 ▲21 | 5.86 ▼0.00 | 102.27 ▼1.08 | 43.75 ▲0.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.06 | 37.11 ▼4.49 | 31.63 ▼6.20 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.01 ▼0.19 | 674.31 ▲37.04 | 61.60 ▲12.29 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.08 | 98.12 ▼6.98 | 41.85 ▼0.70 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_whats-my-ip-widget
- widget_recent-posts
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 | 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
The following issues need your attention
- 140× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/TokenParser/Extends.php:20
- > PHP Fatal error
Uncaught Error: Class 'Arrow\\Asset\\Asset' not found in wp-content/plugins/whats-my-ip/vendor/dsawardekar/arrow/lib/Arrow/Asset/Stylesheet.php:5
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Node/Set.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Node/Expression/Binary.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Error/Loader.php:25
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Node/Expression/Binary/EndsWith.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Function/Node.php:20
- > PHP Fatal error
Uncaught Error: Class 'Encase\\ContainerItem' not found in wp-content/plugins/whats-my-ip/vendor/dsawardekar/encase-php/src/Encase/FactoryItem.php:8
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Node/Sandbox.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Twig_Sandbox_SecurityPolicyInterface' not found in wp-content/plugins/whats-my-ip/vendor/twig/twig/lib/Twig/Sandbox/SecurityPolicy.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
2 plugin tags: geoip, ip
whats-my-ip/whats-my-ip.php Passed 13 tests
The main PHP file in "whats-my-ip" ver. 0.5.2 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Display User's IP address via Widget or Shortcode
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected11,514 lines of code in 225 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 217 | 2,685 | 5,120 | 11,115 |
JSON | 1 | 0 | 0 | 248 |
JavaScript | 2 | 33 | 0 | 90 |
Twig | 3 | 7 | 0 | 36 |
YAML | 1 | 6 | 0 | 19 |
Markdown | 1 | 4 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.85 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 20 | |
Traits | 0 | |
Classes | 193 | |
▷ Abstract classes | 10 | 5.18% |
▷ Concrete classes | 183 | 94.82% |
▷ Final classes | 0 | 0.00% |
Methods | 1,145 | |
▷ Static methods | 16 | 1.40% |
▷ Public methods | 1,035 | 90.39% |
▷ Protected methods | 108 | 9.43% |
▷ Private methods | 2 | 0.17% |
Functions | 52 | |
▷ Named functions | 51 | 98.08% |
▷ Anonymous functions | 1 | 1.92% |
Constants | 38 | |
▷ Global constants | 1 | 2.63% |
▷ Class constants | 37 | 97.37% |
▷ Public constants | 37 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected