78% wovn-io

Code Review | WOVN.io

WordPress plugin WOVN.io scored78%from 54 tests.

About plugin

  • Plugin page: wovn-io
  • Plugin version: 1.10.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Sep 5, 2017
  • Latest release: Sep 28, 2023
  • Number of updates: 68
  • Update frequency: every 32.6 days
  • Top authors: wovn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /8,036 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
Install script ran successfully

Server metrics [RAM: ▲0.45MB] [CPU: ▼0.96ms] Passed 4 tests

A check of server-side resources used by WOVN.io
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4841.04 ▲2.39
Dashboard /wp-admin3.77 ▲0.4753.82 ▲3.96
Posts /wp-admin/edit.php3.82 ▲0.4650.46 ▲1.45
Add New Post /wp-admin/post-new.php6.29 ▲0.4092.63 ▼11.65
Media Library /wp-admin/upload.php3.69 ▲0.4638.09 ▲4.65
WOVN.io /wp-admin/options-general.php?page=wovn-setting-admin3.5732.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WOVN.io
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲8015.96 ▲1.589.14 ▲7.5942.58 ▲1.42
Dashboard /wp-admin2,198 ▲185.51 ▼0.1489.62 ▲1.4338.15 ▼5.69
Posts /wp-admin/edit.php2,106 ▲61.99 ▲0.0534.55 ▼0.2833.50 ▼4.77
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.24637.83 ▼8.9953.36 ▼8.26
Media Library /wp-admin/upload.php1,409 ▲94.17 ▼0.0496.33 ▼14.2641.60 ▼7.03
WOVN.io /wp-admin/options-general.php?page=wovn-setting-admin2,6012.1927.0185.07

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

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 79 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wovn-setting-admin
    • > Notice in wp-content/plugins/wovn-io/wovnwp/wp-classes/wovn_options.php+111
    Undefined index: wovn_lang_code_aliases_temp

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Wovnio\\Wovnwp\\WpClasses\\get_option() in wp-content/plugins/wovn-io/wovnwp/wp-classes/wovn_options.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: i18n, localization, translation, wovnio, l10n...

wovn-io/wovnio.php 92% from 13 tests

The primary PHP file in "WOVN.io" version 1.10.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wovn-io.php" instead of "wovnio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,894 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP243251971,815
CSS110045
SVG10134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity10.04
▷ Minimum class complexity1.00
▷ Maximum class complexity32.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes23
▷ Abstract classes14.35%
▷ Concrete classes2295.65%
▷ Final classes00.00%
Methods128
▷ Static methods1914.84%
▷ Public methods10481.25%
▷ Protected methods32.34%
▷ Private methods2116.41%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
30 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wovnwp/images/flags/tr.png0.31KB0.23KB▼ 26.18%
wovnwp/images/flags/zh-CHS.png0.18KB0.25KB0.00%
wovnwp/images/flags/zh-CHT.png0.18KB0.25KB0.00%
wovnwp/images/flags/nl.png0.12KB0.12KB▼ 0.79%
wovnwp/images/flags/ne.png0.41KB0.45KB0.00%