Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.67ms] Passed 4 tests
This is a short check of server-side resources used by bodi0`s Bots visits counter
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 50.84 ▼0.81 |
Dashboard /wp-admin | 3.31 ▲0.00 | 55.93 ▼3.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 58.09 ▲4.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.48 ▼6.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.57 ▼3.94 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by bodi0`s Bots visits counter
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼0 | 13.66 ▼1.13 | 5.79 ▲3.98 | 44.96 ▲1.69 |
Dashboard /wp-admin | 2,206 ▲6 | 5.90 ▲0.07 | 102.22 ▲6.65 | 38.75 ▼2.25 |
Posts /wp-admin/edit.php | 2,089 ▲18 | 2.05 ▲0.03 | 40.53 ▲4.69 | 35.16 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.32 ▲0.13 | 643.53 ▼39.07 | 55.18 ▼2.33 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.24 ▼0.01 | 94.25 ▼13.75 | 41.59 ▼3.60 |
Uninstaller [IO: ▲0.15MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attentionZombie WordPress options were found after uninstall: 6 options
- Incomplete uninstall procedure, leaving 16 files (0.15MB) in the plugin directory
- (new file) languages/bodi0-bot-counter-bg_BG.mo
- (new file) js/table-sorter.js
- (new file) class.alexa-pagerank.php
- (new file) class.excel.php
- (new file) class.statscrop-pagerank.php
- (new file) class.google-pagerank.php
- (new file) class.geolocation.php
- (new file) bodi0-bot-ajax.php
- (new file) bodi0-bot-counter.php
- (new file) bodi0-bot-admin.php
- ...
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
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)
Good news, no errors were detected
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bodi0s-bots-visits-counter/bodi0-bot-ajax.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: statistics, spider, bot, counter, visits...
bodi0s-bots-visits-counter/bodi0-bot-counter.php 85% from 13 tests
Analyzing the main PHP file in "bodi0`s Bots visits counter" version 0.8.1
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("bodi0s-bots-visits-counter.php" instead of "bodi0-bot-counter.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
Good job! No executable or dangerous file extensions detected1,835 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 256 | 408 | 1,126 |
PO File | 3 | 243 | 262 | 708 |
JavaScript | 1 | 0 | 4 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 1 | 12.50% |
▷ Concrete classes | 7 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 4 | 15.38% |
▷ Private methods | 2 | 7.69% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin