Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼5.48ms] Passed 4 tests
A check of server-side resources used by Iki Toolkit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 41.43 ▲3.88 |
Dashboard /wp-admin | 3.56 ▲0.26 | 48.90 ▲1.25 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 48.13 ▼2.06 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 79.78 ▼22.79 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 35.27 ▲1.67 |
Add new /wp-admin/post-new.php?post_type=iki_wonder_grid | 3.43 | 34.57 |
All grids /wp-admin/edit.php?post_type=iki_wonder_grid | 3.53 | 34.14 |
Iki Toolkit /wp-admin/options-general.php?page=iki_toolkit_options | 3.39 | 28.82 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 213 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_iki_content_block |
db_upgraded |
widget_iki-recent-posts-thumbs |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Iki Toolkit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲199 | 13.72 ▼0.59 | 6.49 ▲4.55 | 39.84 ▼6.16 |
Dashboard /wp-admin | 2,241 ▲53 | 5.89 ▼0.01 | 102.50 ▼1.14 | 37.58 ▼7.12 |
Posts /wp-admin/edit.php | 2,127 ▲35 | 2.09 ▲0.08 | 35.98 ▼3.47 | 32.69 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,547 ▲33 | 23.10 ▲5.45 | 676.85 ▲61.26 | 51.20 ▼3.69 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.33 ▲0.04 | 95.59 ▼1.69 | 42.90 ▼0.20 |
Add new /wp-admin/post-new.php?post_type=iki_wonder_grid | 1,678 | 2.92 | 55.87 | 64.16 |
All grids /wp-admin/edit.php?post_type=iki_wonder_grid | 1,091 | 2.08 | 33.15 | 30.68 |
Iki Toolkit /wp-admin/options-general.php?page=iki_toolkit_options | 938 | 2.31 | 23.69 | 24.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 8 options in the database
- widget_iki-recent-posts-thumbs
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_iki_content_block
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=iki_wonder_grid
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/iki-toolkit/partials/external-services/flickr-thumb.php
- > /wp-content/plugins/iki-toolkit/partials/external-services/pinterest-thumb.php
- 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/iki-toolkit/includes/vc/vc-utils.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iki-toolkit/includes/admin-settings/featured-posts/class-search-posts-ajax.php:57
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_format() in wp-content/plugins/iki-toolkit/partials/vc/post-slider/post-slider-full-image.php:23
- > PHP Notice
Trying to get property 'post_type' of non-object in wp-content/plugins/iki-toolkit/partials/vc/post-listing/post-listing-full-image.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iki-toolkit/includes/vc/class-share-icons.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iki-toolkit/includes/vc/class-theme-social-profiles.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/iki-toolkit/includes/vc/class-image-grid-vc.php:20
- > PHP Fatal error
Uncaught Error: Class 'Iki_Toolkit_Utils' not found in wp-content/plugins/iki-toolkit/partials/hero-section/read-more-btn.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function iki_toolkit() in wp-content/plugins/iki-toolkit/partials/hero-section/hs-blog.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/iki-toolkit/partials/vc/post-slider/post-slider.php on line 41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: iki_xx, toolkit, iki-themes, ikithemes
iki-toolkit/iki-toolkit.php Passed 13 tests
Analyzing the main PHP file in "Iki Toolkit" version 1.2.11
90 characters long description:
The Iki Toolkit extends functionality to Iki Themes, providing custom post types and more.
Code Analysis 97% from 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
No dangerous file extensions were detected27,118 lines of code in 173 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 138 | 5,580 | 5,282 | 20,905 |
CSS | 12 | 519 | 59 | 3,050 |
JavaScript | 19 | 1,081 | 116 | 2,994 |
Sass | 3 | 28 | 4 | 130 |
SVG | 1 | 27 | 0 | 39 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
These items need your attention
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 105)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 474.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 105.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 4 | |
Traits | 0 | |
Classes | 88 | |
▷ Abstract classes | 5 | 5.68% |
▷ Concrete classes | 83 | 94.32% |
▷ Final classes | 0 | 0.00% |
Methods | 803 | |
▷ Static methods | 78 | 9.71% |
▷ Public methods | 499 | 62.14% |
▷ Protected methods | 285 | 35.49% |
▷ Private methods | 19 | 2.37% |
Functions | 165 | |
▷ Named functions | 164 | 99.39% |
▷ Anonymous functions | 1 | 0.61% |
Constants | 11 | |
▷ Global constants | 3 | 27.27% |
▷ Class constants | 8 | 72.73% |
▷ Public constants | 8 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 0.51MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/vc/icons/image-grid.png | 0.72KB | 0.46KB | ▼ 36.59% |
images/front/pattern-overlays/horizontal-stripes.png | 0.11KB | 0.10KB | ▼ 10.71% |
images/front/pattern-overlays/vertical-stripes.png | 0.11KB | 0.10KB | ▼ 12.50% |
images/front/pattern-overlays/squares.png | 0.13KB | 0.10KB | ▼ 20.93% |
images/front/pattern-overlays/dots.png | 0.12KB | 0.10KB | ▼ 18.11% |