78% uikit-wp-integrator

Code Review | UIKIT WP Integrator

WordPress plugin UIKIT WP Integrator scored78%from 54 tests.

About plugin

  • Plugin page: uikit-wp-integrator
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2014
  • Latest release: Jul 13, 2014
  • Number of updates: 21
  • Update frequency: every 1.9 days
  • Top authors: christopher.amirian (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,613 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼21.50ms] Passed 4 tests

Analyzing server-side resources used by UIKIT WP Integrator
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0745.41 ▲5.30
Dashboard /wp-admin3.12 ▼0.1934.40 ▼19.96
Posts /wp-admin/edit.php3.26 ▼0.1037.70 ▼15.72
Add New Post /wp-admin/post-new.php5.50 ▼0.3972.12 ▼45.21
Media Library /wp-admin/upload.php3.19 ▼0.0533.33 ▼5.09
UIKIT Integrator /wp-admin/options-general.php?page=uk-wp-integrator3.1027.91

Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for UIKIT WP Integrator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲11913.67 ▼0.5913.95 ▲11.9457.96 ▲15.25
Dashboard /wp-admin2,200 ▲235.60 ▼0.1284.56 ▼5.0740.27 ▼5.11
Posts /wp-admin/edit.php2,105 ▲52.03 ▼0.0235.71 ▼2.3935.42 ▼0.31
Add New Post /wp-admin/post-new.php1,533 ▲223.45 ▲0.31629.61 ▼43.8547.75 ▼6.57
Media Library /wp-admin/upload.php1,411 ▲144.26 ▼0.0098.66 ▼8.5444.27 ▼5.33
UIKIT Integrator /wp-admin/options-general.php?page=uk-wp-integrator7041.557.8119.58

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

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
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=uk-wp-integrator
    • > Notice in wp-content/plugins/uikit-wp-integrator/uikit-wp-integrator.php+304
    Undefined variable: uikit_version
    • > GET request to /wp-admin/options-general.php?page=uk-wp-integrator
    • > Error in wp-admin/includes/template.php+1801
    Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/uikit-wp-integrator/uikit-wp-integrator.php on line 32 and exactly 2 expected in wp-admin/includes/template.php:1801
    Stack trace:
    #0 wp-content/plugins/uikit-wp-integrator/uikit-wp-integrator.php(32): do_settings_fields()
    #1 wp-includes/class-wp-hook.php(310): uk_wp_integrator_options()
    #2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #3 wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 wp-admin/admin.php(259): do_action()
    #5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #6 {main}
    thrown

SRP 50% 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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/uikit-wp-integrator/uikit-wp-integrator.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === uikit-wp-integrator === )
The official readme.txt is a good inspiration

uikit-wp-integrator/uikit-wp-integrator.php Passed 13 tests

The principal PHP file in "UIKIT WP Integrator" v. 1.1.1 is loaded by WordPress automatically on each request
79 characters long description:
This plugin integrates UIKIT front-end framework of Yootheme.com into Wordpress

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin347 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP14714276
CSS715648
JavaScript12121123

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/uikit.png1.81KB0.69KB▼ 61.98%
assets/screenshot-1.png110.25KB38.64KB▼ 64.95%