78% slovak-post-eph-export

Code Review | Slovak Post EPH Export

WordPress plugin Slovak Post EPH Export scored78%from 54 tests.

About plugin

  • Plugin page: slovak-post-eph-e...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 11, 2020
  • Latest release: Jul 24, 2021
  • Number of updates: 9
  • Update frequency: every 42.1 days
  • Top authors: martinfekete (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /599 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
Installer ran successfully

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

Analyzing server-side resources used by Slovak Post EPH Export
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.41 ▲4.69
Dashboard /wp-admin3.33 ▼0.0251.05 ▼11.80
Posts /wp-admin/edit.php3.38 ▲0.0250.71 ▼0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.22 ▼18.16
Media Library /wp-admin/upload.php3.25 ▲0.0236.52 ▼0.77
EPH export /wp-admin/options-general.php?page=slovak-post-eph-export3.1935.52

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Slovak Post EPH Export
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6314.26 ▼0.181.66 ▼0.2043.28 ▲4.31
Dashboard /wp-admin2,199 ▲225.63 ▲0.1290.85 ▼3.5540.16 ▼1.09
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0838.27 ▼0.7836.67 ▼0.24
Add New Post /wp-admin/post-new.php1,529 ▲323.07 ▼0.50645.50 ▼33.1051.28 ▼11.17
Media Library /wp-admin/upload.php1,407 ▲44.17 ▼0.0597.61 ▼5.0845.22 ▼0.85
EPH export /wp-admin/options-general.php?page=slovak-post-eph-export8592.0023.0830.48

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=slovak-post-eph-export
    • > Notice in wp-content/plugins/slovak-post-eph-export/settings_page.php+104
    Trying to access array offset on value of type bool

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slovak-post-eph-export/settings_page.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slovak-post-eph-export/settings_page.php:22

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: woocommerce, slovenska posta, eph

slovak-post-eph-export/eph_plugin.php 92% from 13 tests

"Slovak Post EPH Export" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("slovak-post-eph-export.php" instead of "eph_plugin.php")

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
Everything looks great! No dangerous files found in this plugin378 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP5101132260
PO File24042118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin