Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-content/plugins/visitors-counter/wp_visitors.php+41
Declaration of wp_visitors::update() should be compatible with WP_Widget::update($new_instance, $old_instance)
Server metrics [RAM: ▼2.19MB] [CPU: ▼58.02ms] Passed 4 tests
This is a short check of server-side resources used by Wordpress Visitors
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.66 | 8.29 ▼34.68 |
Dashboard /wp-admin | 2.09 ▼1.47 | 5.83 ▼52.14 |
Posts /wp-admin/edit.php | 2.09 ▼1.58 | 5.70 ▼44.42 |
Add New Post /wp-admin/post-new.php | 2.09 ▼4.05 | 6.08 ▼100.84 |
Media Library /wp-admin/upload.php | 2.09 ▼1.40 | 6.15 ▼33.29 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_counter_total |
New WordPress options |
---|
widget_recent-comments |
widget_wp_visitors |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
dbsync_db_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordpress Visitors
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲87 | 13.85 ▼0.53 | 7.82 ▲5.74 | 39.15 ▼4.45 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▼0.03 | 85.30 ▼3.39 | 44.24 ▲5.11 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.04 | 42.52 ▲4.60 | 35.67 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 17.72 ▲0.07 | 669.21 ▼31.10 | 56.76 ▲2.17 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.25 ▲0.13 | 104.24 ▼12.96 | 46.42 ▼2.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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 without warnings or errors
- > Warning in wp-content/plugins/visitors-counter/wp_visitors.php+41
Declaration of wp_visitors::update() should be compatible with WP_Widget::update($new_instance, $old_instance)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_counter_total
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- dbsync_db_version
- widget_wp_visitors
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/visitors-counter/total_visitor_counter.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/visitors-counter/total_visitor_counter.php:2
- > 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 90% 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
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2 in visitors-counter/assets to your readme.txt
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== visitors-counter ===
)
visitors-counter/wp_visitors.php 92% from 13 tests
The entry point to "Wordpress Visitors" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("visitors-counter.php" instead of "wp_visitors.php")
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
There were no executable files found in this plugin189 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 44 | 42 | 138 |
JavaScript | 1 | 11 | 0 | 51 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected