10% pencil-wiki

Code Review | Pencil Wiki

WordPress plugin Pencil Wiki scored10%from 54 tests.

About plugin

  • Plugin page: pencil-wiki
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jan 28, 2013
  • Latest release: Feb 3, 2013
  • Number of updates: 11
  • Update frequency: every 0.8 days
  • Top authors: grosbouff (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,487 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/pencil-wiki/pencil-wiki.php+765
    Declaration of Pencil_Wiki_Walker_Page::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)

Server metrics [RAM: ▼1.75MB] [CPU: ▼55.62ms] Passed 4 tests

Analyzing server-side resources used by Pencil Wiki
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.24 ▼1.226.34 ▼29.85
Dashboard /wp-admin2.26 ▼1.085.91 ▼56.29
Posts /wp-admin/edit.php2.27 ▼1.096.43 ▼42.03
Add New Post /wp-admin/post-new.php2.26 ▼3.626.00 ▼92.76
Media Library /wp-admin/upload.php2.27 ▼0.965.44 ▼31.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options
widget_pwiki_widget_edit_page_link
can_compress_scripts
recovery_mode_email_last_sent
widget_pwiki_widget_tree
widget_pwiki_widget_add_page_link
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pencil Wiki
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,489 ▼1,27212.63 ▼1.611.87 ▲0.2941.74 ▼0.06
Dashboard /wp-admin877 ▼1,3031.36 ▼4.1612.62 ▼73.6216.81 ▼26.75
Posts /wp-admin/edit.php888 ▼1,2121.51 ▼0.466.72 ▼29.1420.96 ▼15.32
Add New Post /wp-admin/post-new.php610 ▼9161.71 ▼21.3122.56 ▼647.487.98 ▼54.91
Media Library /wp-admin/upload.php773 ▼6241.71 ▼2.4919.28 ▼85.0219.35 ▼27.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Warning in wp-content/plugins/pencil-wiki/pencil-wiki.php+765
    Declaration of Pencil_Wiki_Walker_Page::start_lvl(&$output, $depth) should be compatible with Walker_Page::start_lvl(&$output, $depth = 0, $args = Array)
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_pwiki_widget_add_page_link
    • can_compress_scripts
    • widget_pwiki_search
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_pwiki_widget_edit_page_link
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • ...

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pencil-wiki/_inc/theme-default/single-wiki_page-tree.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pencil-wiki/_inc/theme-default/single-wiki_page.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pwiki_get_template_part() in wp-content/plugins/pencil-wiki/theme/single-wiki_page.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pwiki_get_template_part() in wp-content/plugins/pencil-wiki/theme/loop-wiki_page.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pencil-wiki/pwiki-revisions.php:154
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/pencil-wiki/pencil-wiki.php:102
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pencil-wiki/pwiki-widgets.php:8

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: wiki, documentation

pencil-wiki/pencil-wiki.php Passed 13 tests

This is the main PHP file of "Pencil Wiki" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Pencil Wiki is a simple wiki solution for your Wordpress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,108 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8453343936
PO File15253126
CSS111346

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 complexity18.50
▷ Minimum class complexity4.00
▷ Maximum class complexity86.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods48
▷ Static methods12.08%
▷ Public methods4797.92%
▷ Protected methods00.00%
▷ Private methods12.08%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
_inc/images/lock.png0.82KB0.66KB▼ 20.02%
_inc/images/lock-grey.png1.35KB0.45KB▼ 66.71%