Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/visitoraudit/visitor-audit.setup.php+65
Undefined variable: opt
Server metrics [RAM: ▼1.37MB] [CPU: ▼281,343.44ms] Passed 4 tests
A check of server-side resources used by Visitor Audit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.10 | 44.54 ▲4.19 |
Dashboard /wp-admin | 3.53 ▼5.99 | 60.28 ▼1,125,373.63 |
Posts /wp-admin/edit.php | 3.65 ▲0.25 | 57.03 ▲3.85 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.20 | 96.21 ▼8.18 |
Media Library /wp-admin/upload.php | 3.46 ▲0.19 | 44.88 ▲10.92 |
Configuration /wp-admin/admin.php?page=visitor_audit_config | 3.42 | 39.89 |
Banned Visitors /wp-admin/admin.php?page=visitor_audit_banned | 3.42 | 39.46 |
Visitor Audit /wp-admin/admin.php?page=visitor_audit_admin | 3.42 | 40.38 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_visitor_audit_banned |
wp_visitor_audit |
wp_visitor_audit_history |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Visitor Audit
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.38 ▼0.35 | 1.99 ▲0.23 | 43.22 ▼4.24 |
Dashboard /wp-admin | 2,224 ▲50 | 5.50 ▼0.14 | 87.31 ▼15.47 | 41.12 ▼7.87 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.97 ▼0.06 | 34.25 ▼5.37 | 33.79 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,553 ▲17 | 23.21 ▲0.09 | 672.02 ▼44.89 | 56.43 ▼5.17 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.26 ▲0.05 | 98.44 ▼2.64 | 47.82 ▲3.88 |
Configuration /wp-admin/admin.php?page=visitor_audit_config | 974 | 2.05 | 23.98 | 27.99 |
Banned Visitors /wp-admin/admin.php?page=visitor_audit_banned | 819 | 2.05 | 26.21 | 29.08 |
Visitor Audit /wp-admin/admin.php?page=visitor_audit_admin | 866 | 2.02 | 25.57 | 28.76 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=visitor_audit_admin
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 36 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=visitor_audit_admin
- > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Visitor_Audit\\Vistor_Audit_Config' not found in wp-content/plugins/visitoraudit/visitor-audit.setup.php:14
- > PHP Notice
Undefined index: wpdb in wp-content/plugins/visitoraudit/visitor-audit.class.php on line 56
- > PHP Fatal error
Uncaught Error: Class 'Visitor_Audit\\Visitor_Audit_Setup' not found in wp-content/plugins/visitoraudit/visitor-audit.class.php:25
- > PHP Fatal error
Uncaught Error: Class 'Visitor_Audit\\Vistor_Audit_Config' not found in wp-content/plugins/visitoraudit/visitor-audit.admin.php:14
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/visitoraudit/visitor-audit.class.php:57
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== visitoraudit ===
)
visitoraudit/visitor-audit.php 92% from 13 tests
Analyzing the main PHP file in "Visitor Audit" version 1.0.0
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("visitoraudit.php" instead of "visitor-audit.php")
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
Success! There were no dangerous files found in this plugin789 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 81 | 370 | 742 |
Markdown | 1 | 11 | 0 | 31 |
JavaScript | 1 | 0 | 0 | 16 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 36.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 30 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 21.05% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected