Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼141.24ms] Passed 4 tests
An overview of server-side resources used by Awesome Visitor Counter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 30.98 ▲6.93 |
Dashboard /wp-admin | 3.07 ▲0.02 | 48.97 ▲4.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 42.37 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 87.39 ▼568.87 |
Media Library /wp-admin/upload.php | 3.02 ▲0.01 | 33.45 ▼0.29 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_vcp_log |
New WordPress options |
---|
widget_vistorcounterplugin_widget |
vcp_db_version |
Browser metrics Passed 4 tests
A check of browser resources used by Awesome Visitor Counter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,772 ▲176 | 16.13 ▲0.64 | 8.82 ▼0.52 | 53.53 ▲10.81 |
Dashboard /wp-admin | 2,982 ▲48 | 5.92 ▲0.00 | 142.21 ▼1.61 | 108.28 ▲3.25 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.69 ▲0.01 | 73.74 ▲7.48 | 93.98 ▲6.71 |
Add New Post /wp-admin/post-new.php | 1,624 ▼48 | 21.50 ▲2.74 | 272.37 ▼99.39 | 118.01 ▲13.76 |
Media Library /wp-admin/upload.php | 1,844 ▲37 | 5.03 ▼0.01 | 138.05 ▼27.49 | 103.68 ▼9.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_vistorcounterplugin_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awesome-visitor-counter/index.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #2 (This is the second screen shot)
- Plugin Name: Please specify the plugin name on the first line (
=== awesome-visitor-counter ===
)
awesome-visitor-counter/index.php 92% from 13 tests
The main PHP script in "Awesome Visitor Counter" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-visitor-counter.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin170 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 62 | 16 | 170 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin