Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/league-of-legends-shortcodes/lol-shortcodes.php+35
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.84MB] [CPU: ▼51.16ms] Passed 4 tests
A check of server-side resources used by League of Legends Shortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.31 | 5.43 ▼36.84 |
Dashboard /wp-admin | 2.17 ▼1.14 | 6.69 ▼42.14 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 6.60 ▼41.65 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 6.91 ▼83.99 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 5.64 ▼30.67 |
LoL Shortcodes /wp-admin/options-general.php?page=lolsc | 2.17 | 7.54 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_lolshortcodes |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by League of Legends Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.48 ▼0.17 | 1.69 ▼0.01 | 43.75 ▲0.63 |
Dashboard /wp-admin | 2,210 ▲21 | 4.86 ▼0.10 | 112.37 ▼6.48 | 43.02 ▼1.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 36.14 ▲1.16 | 33.53 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 23.12 ▲0.04 | 646.71 ▲8.96 | 65.08 ▲12.55 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.29 ▲0.07 | 94.92 ▼2.34 | 43.56 ▲0.14 |
LoL Shortcodes /wp-admin/options-general.php?page=lolsc | 774 | 2.02 | 24.25 | 25.31 |
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
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/league-of-legends-shortcodes/lol-shortcodes.php+35
Trying to access array offset on value of type bool
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_lolshortcodes
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=lolsc
- > Notice in wp-content/plugins/league-of-legends-shortcodes/lol-shortcodes.php+271
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/league-of-legends-shortcodes/lol-shortcodes.php:34
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in league-of-legends-shortcodes/assets to your readme.txt
league-of-legends-shortcodes/lol-shortcodes.php 92% from 13 tests
The main PHP file in "League of Legends Shortcodes" 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("league-of-legends-shortcodes.php" instead of "lol-shortcodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected180 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 33 | 70 | 180 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
42 PNG files occupy 1.22MB with 0.76MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/spells/20.png | 8.60KB | 3.68KB | ▼ 57.17% |
images/ranks/GOLD_II.png | 39.91KB | 12.04KB | ▼ 69.82% |
images/spells/10.png | 9.50KB | 3.89KB | ▼ 59.08% |
images/spells/3.png | 8.97KB | 3.77KB | ▼ 58.01% |
images/ranks/BRONZE_III.png | 39.49KB | 12.18KB | ▼ 69.17% |