78% yada-wiki

Code Review | Yada Wiki

WordPress plugin Yada Wiki scored78%from 54 tests.

About plugin

  • Plugin page: yada-wiki
  • Plugin version: 3.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Mar 27, 2023
  • Number of updates: 68
  • Update frequency: every 43.2 days
  • Top authors: dmccan (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

2,000+ active /55,221 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.17MB] [CPU: ▲3.46ms] Passed 4 tests

Server-side resources used by Yada Wiki
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1745.24 ▲2.61
Dashboard /wp-admin3.46 ▲0.1551.97 ▲2.97
Posts /wp-admin/edit.php3.58 ▲0.2251.86 ▼0.07
Add New Post /wp-admin/post-new.php6.19 ▲0.30109.28 ▲17.37
Media Library /wp-admin/upload.php3.38 ▲0.1544.39 ▲8.32
Add New /wp-admin/post-new.php?post_type=yada_wiki3.5856.34
Wiki Categories /wp-admin/edit-tags.php?taxonomy=wiki_cats&post_type=yada_wiki3.3736.11
Wiki Tags /wp-admin/edit-tags.php?taxonomy=wiki_tags&post_type=yada_wiki3.3735.36
All Wiki Pages /wp-admin/edit.php?post_type=yada_wiki3.4338.63
Yada Wiki /wp-admin/options-general.php?page=yada_wiki3.3940.41

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
widget_yadawiki_activity_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_yadawiki_toc_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Yada Wiki: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲7214.62 ▼0.111.73 ▲0.0844.52 ▼4.15
Dashboard /wp-admin2,237 ▲575.65 ▲0.0586.52 ▼3.2941.30 ▲0.02
Posts /wp-admin/edit.php2,142 ▲422.01 ▲0.0638.37 ▲3.7134.44 ▼2.65
Add New Post /wp-admin/post-new.php1,563 ▲3723.36 ▼0.07663.84 ▼117.6963.43 ▲4.92
Media Library /wp-admin/upload.php1,439 ▲394.20 ▲0.0494.67 ▼12.2644.48 ▼6.45
Add New /wp-admin/post-new.php?post_type=yada_wiki2,9407.82229.1386.45
Wiki Categories /wp-admin/edit-tags.php?taxonomy=wiki_cats&post_type=yada_wiki1,3132.1225.6929.20
Wiki Tags /wp-admin/edit-tags.php?taxonomy=wiki_tags&post_type=yada_wiki1,2822.1227.0830.34
All Wiki Pages /wp-admin/edit.php?post_type=yada_wiki1,1332.0530.6529.11
Yada Wiki /wp-admin/options-general.php?page=yada_wiki9112.1522.5529.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_yadawiki_toc_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_yadawiki_activity_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 6× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/yada-wiki/inc/functions-widgets.php
    • > /wp-content/plugins/yada-wiki/inc/functions-settings.php
    • > /wp-content/plugins/yada-wiki/inc/functions-settings-load.php
    • > /wp-content/plugins/yada-wiki/inc/functions-register-cpt.php
    • > /wp-content/plugins/yada-wiki/inc/functions-public.php
    • > /wp-content/plugins/yada-wiki/inc/functions-admin.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yada-wiki/inc/yadawiki-dialog-link.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/yada-wiki/inc/yadawiki-dialog-toc.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: faq, shortcode, wiki, page links, internal links...

yada-wiki/yada-wiki.php 92% from 13 tests

This is the main PHP file of "Yada Wiki" version 3.4.3, 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:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected2,236 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP111802901,427
PO File2196196481
JavaScript327206
CSS1142122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity17.67
▷ Minimum class complexity8.00
▷ Maximum class complexity24.00
Average method complexity3.63
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods19
▷ Static methods15.26%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/img/wiki-toc.png0.46KB0.34KB▼ 25.53%
js/img/wiki-link.png0.41KB0.36KB▼ 12.09%