68% oewa

Code Review | ÖWA

WordPress plugin ÖWA scored 68% from 54 tests.

About plugin

  • Plugin page: oewa
  • Plugin version: 1.4.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Mar 29, 2017
  • Number of updates: 13
  • Update frequency: every 26.7 days
  • Top authors: jjchinquist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 816 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲1.04ms] Passed 4 tests

Server-side resources used by ÖWA
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.34 ▲0.14
Dashboard /wp-admin3.34 ▲0.0447.72 ▲1.61
Posts /wp-admin/edit.php3.40 ▲0.0450.77 ▲3.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.68 ▲2.15
Media Library /wp-admin/upload.php3.27 ▲0.0435.50 ▲0.24
ÖWA /wp-admin/admin.php?page=oewa-options3.2329.55
Testing /wp-admin/admin.php?page=oewa-test-category-mapping3.2131.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-comments
widget_recent-posts
oewa_options
can_compress_scripts
oewa_tracking_code_version
widget_theysaidso_widget
oewa_plugin_version
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for ÖWA
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲3814.78 ▲1.491.84 ▲0.0842.40 ▲0.68
Dashboard /wp-admin2,227 ▲184.86 ▼0.03107.59 ▲5.1840.72 ▲2.76
Posts /wp-admin/edit.php2,116 ▲272.04 ▲0.0339.29 ▲0.3234.84 ▼0.23
Add New Post /wp-admin/post-new.php6,488 ▲4,95520.54 ▼2.54844.75 ▲181.3061.78 ▲4.35
Media Library /wp-admin/upload.php1,409 ▲214.38 ▲0.2193.95 ▼2.6947.71 ▲3.71
ÖWA /wp-admin/admin.php?page=oewa-options1,1192.1023.2434.68
Testing /wp-admin/admin.php?page=oewa-test-category-mapping8442.1823.2927.96

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/oewa/oewa.php+149
    Undefined index: oewa
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • oewa_tracking_code_version
    • widget_recent-posts
    • oewa_options
    • theysaidso_admin_options
    • oewa_plugin_version
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=oewa-test-category-mapping
    • > Notice in wp-content/plugins/oewa/oewa.php+694
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/oewa/oewa.php:68

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: analytics, wa, tracking, seo, statistics

oewa/oewa.php Passed 13 tests

The main PHP script in "ÖWA" version 1.4.4 is automatically included on every request by WordPress
54 characters long description:
Adds the ÖWA statistics code to the website front-end

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
No dangerous file extensions were detected536 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2166322536

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity84.00
▷ Minimum class complexity84.00
▷ Maximum class complexity84.00
Average method complexity3.68
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods2374.19%
▷ Protected methods825.81%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png69.88KB34.72KB▼ 50.31%