Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.25MB] [CPU: ▼4.09ms] Passed 4 tests
Analyzing server-side resources used by WP Battle by Alex Lundin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 37.23 ▼3.62 |
Dashboard /wp-admin | 3.55 ▲0.21 | 48.04 ▼17.78 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 54.47 ▲5.86 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.27 | 100.26 ▲2.63 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 40.07 ▲2.42 |
Server storage [IO: ▲7.40MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_battle_items_table |
wp_battle_comments_table |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Battle by Alex Lundin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,861 ▲90 | 13.27 ▼0.97 | 7.31 ▲5.25 | 39.62 ▼3.34 |
Dashboard /wp-admin | 2,230 ▲42 | 4.83 ▼1.05 | 99.45 ▼14.43 | 47.24 ▲0.67 |
Posts /wp-admin/edit.php | 2,113 ▲42 | 2.02 ▼0.11 | 39.38 ▼0.07 | 35.23 ▼2.30 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,842 | 27.65 ▲4.34 | 896.81 ▲210.00 | 48.60 ▼13.24 |
Media Library /wp-admin/upload.php | 1,412 ▲27 | 4.24 ▼0.03 | 94.79 ▼3.52 | 43.04 ▲2.06 |
Battles /wp-admin/admin.php?page=asl_battles#/ | 957 | 7.09 | 205.49 | 41.62 |
Comments /wp-admin/admin.php?page=asl_battles#/comments | 927 | 6.75 | 204.82 | 32.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_battle_items_table
- wp_battle_comments_table
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/battle-by-alex-lundin/admin/partials/asl-battle-admin-display.php
- > /wp-content/plugins/battle-by-alex-lundin/public/partials/asl-battle-public-display.php
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
battle-by-alex-lundin/asl-battle.php 85% from 13 tests
The main PHP file in "WP Battle by Alex Lundin" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; 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 ("battle-by-alex-lundin.php" instead of "asl-battle.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 plugin2,241 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 217 | 522 | 1,223 |
CSS | 3 | 125 | 8 | 767 |
JavaScript | 3 | 27 | 107 | 251 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 9.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 11 | |
▷ Named functions | 7 | 63.64% |
▷ Anonymous functions | 4 | 36.36% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin