Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼141.24ms] Passed 4 tests
This is a short check of server-side resources used by Icons Enricher
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.14 | 37.29 ▲3.49 |
Dashboard /wp-admin | 3.19 ▲0.14 | 43.17 ▼5.04 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 45.57 ▲1.79 |
Add New Post /wp-admin/post-new.php | 5.57 ▲0.14 | 102.50 ▼551.22 |
Media Library /wp-admin/upload.php | 3.14 ▲0.13 | 38.53 ▼10.50 |
Icons Enricher /wp-admin/options-general.php?page=icons-enricher | 3.15 | 33.00 |
Server storage [IO: ▲4.82MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 89 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Icons Enricher
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.15 ▲0.60 | 10.17 ▲2.38 | 46.79 ▼0.67 |
Dashboard /wp-admin | 2,972 ▲39 | 5.85 ▼0.24 | 147.73 ▼12.70 | 103.10 ▼5.26 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 74.71 ▲5.45 | 88.11 ▼0.47 |
Add New Post /wp-admin/post-new.php | 3,970 ▲2,287 | 21.23 ▲2.92 | 445.42 ▲66.47 | 129.98 ▲17.14 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.03 ▼0.01 | 168.10 ▲24.64 | 120.74 ▲3.92 |
Icons Enricher /wp-admin/options-general.php?page=icons-enricher | 1,714 | 2.12 | 56.20 | 74.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 10× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/icons-enricher/library/IconsEnricherAjax.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherSettings.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherMenuIconPicker.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherPack.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricher.php
- > /wp-content/plugins/icons-enricher/icons-enricher.php
- > /wp-content/plugins/icons-enricher/pages/settings_page.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherShortcodes.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherMediaButton.php
- > /wp-content/plugins/icons-enricher/library/IconsEnricherStylesManager.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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
icons-enricher/icons-enricher.php Passed 13 tests
The principal PHP file in "Icons Enricher" v. 1.0.8 is loaded by WordPress automatically on each request
138 characters long description:
Enrich your website with styled, consistent, pixel-perfect, first-class, shiny-ass icons. Insert icons in the post in less than 8 seconds.
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 plugin15,378 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 7 | 1 | 9 | 8,095 |
JavaScript | 1 | 753 | 1,076 | 6,221 |
PHP | 10 | 141 | 227 | 944 |
Markdown | 2 | 54 | 0 | 82 |
JSON | 7 | 0 | 0 | 27 |
CSS | 9 | 1 | 66 | 9 |
HTML | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 14.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 8 | 19.51% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 10 | 76.92% |
▷ Class constants | 3 | 23.08% |
▷ Public constants | 3 | 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