10% wehewehe

Code Review | WEHEWEHE Hawaiian English Dictionary Widget

WordPress plugin WEHEWEHE Hawaiian English Dictionary Widget scored10%from 54 tests.

About plugin

  • Plugin page: wehewehe
  • Plugin version: 4.14.49
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.1
  • WordPress version: 6.3.1
  • First release: Aug 28, 2012
  • Latest release: Dec 20, 2014
  • Number of updates: 6
  • Update frequency: every 176.3 days
  • Top authors: scheeeli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,272 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wehewehe/index.php+209
    Methods with the same name as their class will not be constructors in a future version of PHP; WEHEWEHE_Widget_Class has a deprecated constructor

Server metrics [RAM: ▼1.81MB] [CPU: ▼62.67ms] Passed 4 tests

Server-side resources used by WEHEWEHE Hawaiian English Dictionary Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.295.48 ▼46.73
Dashboard /wp-admin2.20 ▼1.116.54 ▼48.67
Posts /wp-admin/edit.php2.20 ▼1.168.00 ▼49.16
Add New Post /wp-admin/post-new.php2.20 ▼3.696.62 ▼106.13
Media Library /wp-admin/upload.php2.20 ▼1.045.80 ▼31.78

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

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

Browser metrics Passed 4 tests

WEHEWEHE Hawaiian English Dictionary Widget: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.69 ▲0.271.85 ▼0.2147.37 ▲3.60
Dashboard /wp-admin2,191 ▲145.52 ▼0.0685.64 ▼18.9775.47 ▲30.84
Posts /wp-admin/edit.php2,114 ▲112.00 ▲0.0136.25 ▼9.5032.15 ▼2.05
Add New Post /wp-admin/post-new.php1,536 ▲1023.48 ▲0.02787.74 ▲92.7960.20 ▲7.81
Media Library /wp-admin/upload.php1,405 ▲54.16 ▼0.02115.13 ▲5.1389.23 ▲44.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wehewehe/index.php+209
    Methods with the same name as their class will not be constructors in a future version of PHP; WEHEWEHE_Widget_Class has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_wehewehe-widget
    • theysaidso_admin_options

Smoke tests 50% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wehewehe/index.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function import_request_variables() in wp-content/plugins/wehewehe/images/index.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

wehewehe/index.php 92% from 13 tests

This is the main PHP file of "WEHEWEHE Hawaiian English Dictionary Widget" version 4.14.49, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wehewehe.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected354 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2938354

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin