67% wikilookup

Code Review | Wikilookup

WordPress plugin Wikilookup scored67%from 54 tests.

About plugin

  • Plugin page: wikilookup
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2019
  • Latest release: Aug 9, 2019
  • Number of updates: 10
  • Update frequency: every 1.6 days
  • Top authors: mooeypoo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /2,301 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼1.21ms] Passed 4 tests

Server-side resources used by Wikilookup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.42 ▲3.22
Dashboard /wp-admin3.46 ▲0.1551.79 ▼0.02
Posts /wp-admin/edit.php3.57 ▲0.2146.39 ▼6.15
Add New Post /wp-admin/post-new.php6.03 ▲0.1589.82 ▼1.88
Media Library /wp-admin/upload.php3.39 ▲0.1639.85 ▲6.53
Wikilookup /wp-admin/admin.php?page=wikilookup-settings3.3635.75
Display settings /wp-admin/admin.php?page=wikilookup-settings-display3.3634.15
External wikis /wp-admin/admin.php?page=wikilookup-settings-sources3.3631.99
General settings /wp-admin/admin.php?page=wikilookup-settings-main3.3631.36

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Wikilookup
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲27117.04 ▲2.6710.64 ▲8.7445.05 ▼3.20
Dashboard /wp-admin2,283 ▲987.45 ▲2.55192.92 ▲88.6639.57 ▼4.83
Posts /wp-admin/edit.php2,141 ▲526.61 ▲4.5656.07 ▲15.9429.40 ▼8.51
Add New Post /wp-admin/post-new.php6,373 ▲4,85926.93 ▲9.52802.30 ▲135.4741.79 ▼10.89
Media Library /wp-admin/upload.php1,481 ▲938.78 ▲4.62114.27 ▲16.4344.22 ▲1.25
Wikilookup /wp-admin/admin.php?page=wikilookup-settings1,0986.4356.8733.44
Display settings /wp-admin/admin.php?page=wikilookup-settings-display1,2036.4452.1739.38
External wikis /wp-admin/admin.php?page=wikilookup-settings-sources1,0286.5259.8332.48
General settings /wp-admin/admin.php?page=wikilookup-settings-main9376.5449.8724.51

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wikilookup-settings-main
    • > Notice in wp-content/plugins/wikilookup/views/_admin_header.php+6
    Undefined index: wl_notice

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wikilookup/views/_admin_footer.php
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wikilookup/views/admin_wikilookup_display.php:3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/wikilookup/views/_admin_header.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wikilookup/views/admin_wikilookup_sources.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wikilookup/views/admin_wikilookup_main.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wikilookup/views/admin_wikilookup_general_info.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=wikilookup-settings
    • > Network (severe)
    wp-content/plugins/wikilookup/assets/admin/settings-main.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Invalid url: ""
You can look at the official readme.txt

wikilookup/wikilookup.php Passed 13 tests

The main PHP script in "Wikilookup" version 1.1.5 is automatically included on every request by WordPress
67 characters long description:
Add content from Wikipedia and other wikis into your WordPress blog

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 detected2,040 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP201742281,206
JavaScript77261503
PO File16671220
CSS41812110
JSON1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity10.89
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1425.45%
▷ Public methods4581.82%
▷ Protected methods916.36%
▷ Private methods11.82%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants3
▷ Global constants3100.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
No PNG files were detected