63% wikiembedder

Code Review | Wikiembedder

WordPress plugin Wikiembedder scored63%from 54 tests.

About plugin

  • Plugin page: wikiembedder
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2015
  • Latest release: Dec 23, 2017
  • Number of updates: 4
  • Update frequency: every 191.8 days
  • Top authors: datagutten (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,441 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.22MB] [CPU: ▼50.60ms] Passed 4 tests

A check of server-side resources used by Wikiembedder
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7118.18 ▼25.23
Dashboard /wp-admin2.79 ▼0.5115.25 ▼40.41
Posts /wp-admin/edit.php2.79 ▼0.5615.97 ▼38.99
Add New Post /wp-admin/post-new.php2.79 ▼3.0914.96 ▼97.78
Media Library /wp-admin/upload.php2.79 ▼0.4414.62 ▼21.73
Wikiembedder /wp-admin/options-general.php?page=wikiembedder2.7915.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wikiembedder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲3814.76 ▲0.601.79 ▼0.0640.06 ▼6.43
Dashboard /wp-admin2,204 ▲335.62 ▼0.0587.38 ▼3.4338.09 ▼3.67
Posts /wp-admin/edit.php2,106 ▲31.97 ▼0.0839.71 ▼1.3935.72 ▼0.98
Add New Post /wp-admin/post-new.php1,540 ▲1018.27 ▼4.87609.70 ▼70.9663.84 ▲8.64
Media Library /wp-admin/upload.php1,409 ▲64.16 ▼0.0399.66 ▼6.7944.73 ▼0.25
Wikiembedder /wp-admin/options-general.php?page=wikiembedder7721.9923.8527.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wikiembedder/wikiembedder.php+38
    Undefined property: wikiembedder::$version
  • Zombie WordPress options detected upon uninstall: 7 options
    • wikiurl
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% 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/options-general.php?page=wikiembedder
    • > Notice in wp-content/plugins/wikiembedder/wikiembedder.php+38
    Undefined property: wikiembedder::$version

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wikiembedder/wikiembedder.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wikiembedder/admin_menu.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: wiki, embed, mediawiki

wikiembedder/wikiembedder.php Passed 13 tests

This is the main PHP file of "Wikiembedder" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
Embed MediaWiki in a wordpress site and allow users to navigate the wiki without leaving your wordpress page.

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
Everything looks great! No dangerous files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21738133
CSS181030

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
There are no PNG files in this plugin