89% woo-firemni-udaje

Code Review | WooCommerce Firemní údaje

WordPress plugin WooCommerce Firemní údaje scored 89% from 54 tests.

About plugin

  • Plugin page: woo-firemni-udaje
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Sep 22, 2018
  • Latest release: Dec 8, 2018
  • Number of updates: 5
  • Update frequency: every 15.4 days
  • Top authors: felixprojekt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 582 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.40ms] Passed 4 tests

Server-side resources used by WooCommerce Firemní údaje
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.72 ▼1.68
Dashboard /wp-admin3.31 ▲0.0044.82 ▼0.82
Posts /wp-admin/edit.php3.36 ▲0.0043.42 ▼2.08
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.93 ▼17.02
Media Library /wp-admin/upload.php3.23 ▲0.0036.23 ▲3.53

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Firemní údaje
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.79 ▲0.342.06 ▲0.2644.43 ▲2.18
Dashboard /wp-admin2,203 ▲125.83 ▼0.0794.77 ▼11.3737.18 ▼4.00
Posts /wp-admin/edit.php2,086 ▼62.00 ▼0.0434.08 ▼7.0333.31 ▼16.60
Add New Post /wp-admin/post-new.php1,544 ▲1118.42 ▼4.97617.68 ▲14.9359.99 ▲9.85
Media Library /wp-admin/upload.php1,385 ▼34.24 ▲0.02101.87 ▼8.5343.83 ▼2.78

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 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
7 plugin tags: adresa, billing, shipping, commerce, checkout...

woo-firemni-udaje/woocommerce-firemni-udaje.php 77% from 13 tests

The entry point to "WooCommerce Firemní údaje" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("woo-firemni-udaje.php" instead of "woocommerce-firemni-udaje.php")
  • Description: The description should be shorter than 140 characters (currently 141 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15923186
PO File2262699

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin