78% idnich

Code Review | iDNich'

WordPress plugin iDNich' scored78%from 54 tests.

About plugin

  • Plugin page: idnich
  • Plugin version: 1.3.5
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.8.1
  • WordPress version: 6.3.1
  • First release: Jun 9, 2020
  • Latest release: Oct 21, 2021
  • Number of updates: 12
  • Update frequency: every 41.6 days
  • Top authors: idnich (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

10+ active /1,027 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▲8.88ms] 75% from 4 tests

Analyzing server-side resources used by iDNich'
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 557.18ms on /wp-admin/admin.php?page=iDNich_Plugin)
PageMemory (MB)CPU Time (ms)
Home /4.02 ▲0.5545.20 ▲0.99
Dashboard /wp-admin4.08 ▲0.7471.35 ▲2.73
Posts /wp-admin/edit.php4.15 ▲0.7970.44 ▲19.58
Add New Post /wp-admin/post-new.php6.52 ▲0.63121.62 ▲12.22
Media Library /wp-admin/upload.php4.08 ▲0.8560.80 ▲25.66
Import /wp-admin/admin.php?page=idnich_plugin_import_translations4.0547.48
Explore URL /wp-admin/admin.php?page=idnich_plugin_explore4.0546.26
Visualize /wp-admin/admin.php?page=idnich_plugin_visualize_translations4.0548.04
Manage /wp-admin/admin.php?page=iDNich_Plugin4.05557.18
Translation /wp-admin/admin.php?page=idnich_translate4.0549.05

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: 2 new tables, 10 new options
New tables
wp_idnich_imported_translation
wp_idnich_translation
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
dnich_api_token
widget_recent-posts
dnich_keep_list
dnich_api_url
theysaidso_admin_options
db_upgraded
dnich_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for iDNich'
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲12013.69 ▼0.861.84 ▼0.2238.21 ▼2.84
Dashboard /wp-admin2,284 ▲1075.33 ▼0.27106.79 ▲6.5650.65 ▲9.63
Posts /wp-admin/edit.php2,197 ▲972.58 ▲0.5848.55 ▲8.8870.80 ▲36.66
Add New Post /wp-admin/post-new.php1,591 ▲5421.36 ▲2.93686.24 ▲25.9240.88 ▼20.45
Media Library /wp-admin/upload.php1,493 ▲904.91 ▲0.72108.00 ▼2.8048.73 ▲0.77
Import /wp-admin/admin.php?page=idnich_plugin_import_translations1,6962.0137.4979.53
Explore URL /wp-admin/admin.php?page=idnich_plugin_explore9021.9932.7136.02
Visualize /wp-admin/admin.php?page=idnich_plugin_visualize_translations9121.9932.2632.65
Manage /wp-admin/admin.php?page=iDNich_Plugin1,0992.0131.7976.28
Translation /wp-admin/admin.php?page=idnich_translate1,7731.9734.2187.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • widget_recent-posts
    • dnich_keep_list
    • dnich_options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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/admin.php?page=iDNich_Plugin
    • > Notice in wp-content/plugins/idnich/controllers/api_controller.php+62
    Trying to get property 'question' of non-object
    • > GET request to /wp-admin/admin.php?page=iDNich_Plugin
    • > Notice in wp-content/plugins/idnich/controllers/api_controller.php+64
    Trying to get property 'hash' of non-object

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/idnich/idnich.php:14

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: seo, niches, keywords, concurency, traduction

idnich/idnich.php 92% from 13 tests

The main file in "iDNich'" v. 1.3.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 298 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,749 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP85403133,269
JavaScript114311806
CSS18811673
SVG1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity63.75
▷ Minimum class complexity2.00
▷ Maximum class complexity249.00
Average method complexity4.95
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods127
▷ Static methods32.36%
▷ Public methods11288.19%
▷ Protected methods1511.81%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants22100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/iDNich_logo.png18.77KB5.54KB▼ 70.45%