Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼299.54ms] Passed 4 tests
A check of server-side resources used by WP Elusive Iconfont
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 54.72 ▲5.63 |
Dashboard /wp-admin | 3.43 ▲0.03 | 32.04 ▼4.34 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 41.24 ▲5.57 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 90.39 ▼1,199.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 25.15 ▼0.40 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Elusive Iconfont
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,791 ▲47 | 15.96 ▲0.24 | 6.64 ▼0.02 | 2.18 ▲0.05 |
Dashboard /wp-admin | 2,892 ▲34 | 6.05 ▼0.13 | 115.68 ▼20.24 | 155.59 ▼5.77 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.24 ▲0.01 | 64.64 ▼0.09 | 139.16 ▼1.48 |
Add New Post /wp-admin/post-new.php | 1,760 ▲55 | 22.26 ▲2.31 | 423.78 ▼43.34 | 155.53 ▼0.77 |
Media Library /wp-admin/upload.php | 1,698 ▲6 | 5.52 ▲0.05 | 139.54 ▼1.67 | 189.72 ▲6.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-elusive-iconfont/assets/tinymce-plugin.php
- > /wp-content/plugins/wp-elusive-iconfont/wpelusiveiconfont.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Full Elusive Inconfont List) image not found
wp-elusive-iconfont/wpelusiveiconfont.php 85% from 13 tests
The primary PHP file in "WP Elusive Iconfont" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-elusive-iconfont.php" instead of "wpelusiveiconfont.php")
- Description: The description should be shorter than 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,801 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 59 | 6 | 1,907 |
LESS | 1 | 11 | 5 | 885 |
SVG | 2 | 0 | 0 | 566 |
JavaScript | 1 | 9 | 17 | 388 |
PHP | 2 | 19 | 30 | 55 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ 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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Elusive-icons.png | 134.45KB | 72.22KB | ▼ 46.28% |
img/elusive.png | 0.71KB | 0.69KB | ▼ 2.47% |