Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▲2.09ms] Passed 4 tests
An overview of server-side resources used by Dicode Icons Pack
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 41.10 ▲1.67 |
Dashboard /wp-admin | 3.40 ▲0.10 | 52.97 ▲2.62 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 55.38 ▲2.92 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.34 ▲2.19 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.06 ▲1.89 |
Icons Search /wp-admin/admin.php?page=dicode_icons_lib | 3.32 | 42.93 |
Settings /wp-admin/admin.php?page=dicodeicons | 3.30 | 37.83 |
Server storage [IO: ▲20.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 135 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
dicode_icons_activation |
can_compress_scripts |
dicode_icons_changelog |
widget_recent-posts |
Browser metrics Passed 4 tests
Dicode Icons Pack: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,985 ▲250 | 15.06 ▲0.74 | 1.68 ▼0.11 | 43.12 ▼1.44 |
Dashboard /wp-admin | 2,385 ▲197 | 6.63 ▲0.74 | 138.15 ▲26.55 | 41.60 ▲2.01 |
Posts /wp-admin/edit.php | 2,288 ▲202 | 3.54 ▲1.51 | 57.13 ▲22.18 | 34.51 ▼0.08 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 17.78 ▼5.40 | 594.60 ▼6.99 | 28.16 ▼22.16 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.26 ▲0.09 | 82.11 ▼16.92 | 41.02 ▼0.44 |
Icons Search /wp-admin/admin.php?page=dicode_icons_lib | 14,238 | 4.01 | 59.68 | 192.43 |
Settings /wp-admin/admin.php?page=dicodeicons | 1,326 | 3.43 | 47.63 | 29.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- dicode_icons_changelog
- dicode_icons_activation
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dicode-icons-pack/admin/settings-api/icon-library.php:6
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
5 plugin tags: font icons, icon fonts, custom icons, elementor, icons
dicode-icons-pack/dicode-icons-pack.php Passed 13 tests
The principal PHP file in "Dicode Icons Pack" v. 1.1.0 is loaded by WordPress automatically on each request
90 characters long description:
This plugin provide ability to have custom icons based on free and premium icon libraries.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin36,022 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 16 | 0 | 6 | 16,327 |
PHP | 30 | 486 | 591 | 15,562 |
CSS | 17 | 21 | 42 | 4,080 |
JavaScript | 2 | 15 | 20 | 53 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 6.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 47 | 48.45% |
▷ Public methods | 92 | 94.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.15% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/copy-icon.png | 1.56KB | 0.76KB | ▼ 51.44% |
assets/images/copy.png | 161.68KB | 58.31KB | ▼ 63.93% |