78% icerikmatik-import-tool

Code Review | Icerikmatik Import

WordPress plugin Icerikmatik Import scored 78% from 54 tests.

About plugin

  • Plugin page: icerikmatik-impor...
  • Plugin version: 1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Aug 25, 2022
  • Number of updates: 13
  • Update frequency: every 135.7 days
  • Top authors: mudonat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 897 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼7.88ms] Passed 4 tests

An overview of server-side resources used by Icerikmatik Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.85 ▼9.09
Dashboard /wp-admin3.44 ▲0.1346.67 ▼1.73
Posts /wp-admin/edit.php3.53 ▲0.1747.89 ▼3.13
Add New Post /wp-admin/post-new.php6.13 ▲0.2484.00 ▼17.58
Media Library /wp-admin/upload.php3.37 ▲0.1435.68 ▼0.63
Ayarlar /wp-admin/admin.php?page=icerikmatik.settings3.2934.08
Projeler /wp-admin/admin.php?page=icerikmatik.projects3.2729.63

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Icerikmatik Import
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8713.21 ▼1.171.71 ▼0.2643.58 ▼0.44
Dashboard /wp-admin2,231 ▲465.84 ▼0.01112.23 ▼4.9681.29 ▲35.82
Posts /wp-admin/edit.php2,111 ▲221.98 ▼0.0539.39 ▲2.3738.69 ▲3.54
Add New Post /wp-admin/post-new.php1,686 ▲15322.23 ▼0.98759.49 ▲82.6946.06 ▼13.94
Media Library /wp-admin/upload.php1,407 ▲194.21 ▲0.03100.69 ▲0.2669.99 ▲25.77
Ayarlar /wp-admin/admin.php?page=icerikmatik.settings8202.0226.0227.12
Projeler /wp-admin/admin.php?page=icerikmatik.projects8372.0329.5628.48

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/icerikmatik-import-tool/icerikmatik-import.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icerikmatik-import-tool/views/head.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icerikmatik-import-tool/views/head.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icerikmatik-import-tool/views/head.php:1
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/icerikmatik-import-tool/views/messages.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icerikmatik-import-tool/views/head.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/icerikmatik-import-tool/views/head.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: posts

icerikmatik-import-tool/icerikmatik-import.php 92% from 13 tests

"Icerikmatik Import" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("icerikmatik-import-tool.php" instead of "icerikmatik-import.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin451 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9118112451

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity33.00
▷ Minimum class complexity12.00
▷ Maximum class complexity54.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods942.86%
▷ Protected methods29.52%
▷ Private methods1047.62%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png29.94KB9.49KB▼ 68.32%
assets/screenshot-2.png60.23KB20.19KB▼ 66.48%
assets/icon-23x22.png0.69KB0.79KB0.00%
assets/logo.png4.32KB3.17KB▼ 26.48%