84% wordpress-wiki-that-doesnt-suck

Code Review | WordPress Wiki That Doesn't Suck

WordPress plugin WordPress Wiki That Doesn't Suck scored 84% from 54 tests.

About plugin

  • Plugin page: wordpress-wiki-th...
  • Plugin version: 0.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.5
  • WordPress version: 6.3.1
  • First release: Nov 8, 2010
  • Latest release: Apr 23, 2013
  • Number of updates: 38
  • Update frequency: every 23.6 days
  • Top authors: jazzs3quence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,864 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.07MB] [CPU: ▼5.57ms] Passed 4 tests

An overview of server-side resources used by WordPress Wiki That Doesn't Suck
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0743.78 ▼3.34
Dashboard /wp-admin3.37 ▲0.0743.74 ▼0.38
Posts /wp-admin/edit.php3.42 ▲0.0739.98 ▼4.27
Add New Post /wp-admin/post-new.php5.95 ▲0.0798.02 ▼10.53
Media Library /wp-admin/upload.php3.29 ▲0.0732.85 ▼4.13
Post New Wiki /wp-admin/post-new.php?post_type=wpwtds_article3.4349.23
Wiki != suck /wp-admin/edit.php?post_type=wpwtds_article3.3436.29
Sections /wp-admin/edit-tags.php?taxonomy=wiki_section&post_type=wpwtds_article3.2936.41

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

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

Browser metrics Passed 4 tests

WordPress Wiki That Doesn't Suck: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲8313.17 ▼1.202.38 ▲0.0550.40 ▼7.15
Dashboard /wp-admin2,243 ▲555.91 ▲0.03115.52 ▼13.8743.29 ▼13.75
Posts /wp-admin/edit.php2,126 ▲372.04 ▼0.0238.36 ▲2.0232.48 ▼1.91
Add New Post /wp-admin/post-new.php1,568 ▲4023.39 ▲5.05617.89 ▼76.4549.90 ▼15.11
Media Library /wp-admin/upload.php1,425 ▲344.23 ▲0.1598.76 ▼15.5243.85 ▼7.12
Post New Wiki /wp-admin/post-new.php?post_type=wpwtds_article2,6999.02206.8073.50
Wiki != suck /wp-admin/edit.php?post_type=wpwtds_article1,0981.9536.9032.98
Sections /wp-admin/edit-tags.php?taxonomy=wiki_section&post_type=wpwtds_article1,3022.1429.9531.67

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wordpress-wiki-that-doesnt-suck/wpwtds.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wordpress-wiki-that-doesnt-suck/templates/wiki.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wordpress-wiki-that-doesnt-suck/templates/single-wpwtds_article.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: wiki, support, custom post types

wordpress-wiki-that-doesnt-suck/wpwtds.php 92% from 13 tests

This is the main PHP file of "WordPress Wiki That Doesn't Suck" version 0.9.2, 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:
  • Main file name: Name the main plugin file the same as the plugin slug ("wordpress-wiki-that-doesnt-suck.php" instead of "wpwtds.php")

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
Good job! No executable or dangerous file extensions detected241 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP332115241

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
images/wpwtds.png2.74KB1.63KB▼ 40.41%
images/wiki.png1.66KB0.83KB▼ 49.85%