84% woolab-ic-dic

Code Review | Kybernaut IČO DIČ

WordPress plugin Kybernaut IČO DIČ scored84%from 54 tests.

About plugin

  • Plugin page: woolab-ic-dic
  • Plugin version: 1.7.4
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jul 18, 2016
  • Latest release: Nov 20, 2023
  • Number of updates: 60
  • Update frequency: every 44.7 days
  • Top authors: vyskoczilova (100%)

Code review

54 tests

User reviews

29 reviews

Install metrics

2,000+ active /27,400 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼6.14ms] Passed 4 tests

Server-side resources used by Kybernaut IČO DIČ
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.60 ▼5.99
Dashboard /wp-admin3.31 ▼0.0450.29 ▼12.42
Posts /wp-admin/edit.php3.36 ▲0.0045.78 ▼1.72
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.08 ▼4.41
Media Library /wp-admin/upload.php3.23 ▲0.0034.30 ▲1.00

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Kybernaut IČO DIČ
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6814.70 ▲0.441.85 ▲0.1038.36 ▼5.16
Dashboard /wp-admin2,198 ▲235.56 ▼0.0989.92 ▼23.4942.10 ▼1.13
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0638.80 ▼0.5736.84 ▲3.25
Add New Post /wp-admin/post-new.php1,526 ▼323.24 ▼0.04593.08 ▼46.5048.47 ▼12.57
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0196.24 ▲3.1940.25 ▼0.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Interface 'Ibericode\\Vat\\Clients\\Client' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/src/Clients/IbericodeVatRatesClient.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/tests/Clients/ClientsTest.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woolab-ic-dic/includes/compatibility/superfaktura.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Ibericode\\Vat\\Exception' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/src/Clients/ClientException.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/tests/CountriesTest.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/woolab-ic-dic/includes/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/tests/ValidatorTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/tests/RatesTest.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/woolab-ic-dic/vendor/ibericode/vat/tests/GeolocatorTest.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woolab-ic-dic/includes/admin-notice.php:3

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 93% 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:
  • Tags: You are using too many tags: 48 tag instead of maximum 10
The official readme.txt might help

woolab-ic-dic/woolab-ic-dic.php 92% from 13 tests

The principal PHP file in "Kybernaut IČO DIČ" v. 1.7.4 is loaded by WordPress automatically on each request
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.6" instead of "3.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,937 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
PHP355448122,482
JavaScript66224292
JSON300116
XML20036
YAML1309
CSS2002

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.46
Average class complexity6.77
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces1
Traits0
Classes21
▷ Abstract classes00.00%
▷ Concrete classes21100.00%
▷ Final classes00.00%
Methods104
▷ Static methods1817.31%
▷ Public methods9389.42%
▷ Protected methods32.88%
▷ Private methods87.69%
Functions42
▷ Named functions3992.86%
▷ Anonymous functions37.14%
Constants6
▷ Global constants466.67%
▷ Class constants233.33%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin