72% orcas-responsive-wiki

Code Review | orcas Responsive Wiki

WordPress plugin orcas Responsive Wiki scored72%from 54 tests.

About plugin

  • Plugin page: orcas-responsive-...
  • Plugin version: 1.2.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.5
  • WordPress version: 6.3.1
  • First release: May 7, 2018
  • Latest release: Sep 20, 2018
  • Number of updates: 36
  • Update frequency: every 3.9 days
  • Top authors: orcasdev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,331 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼10.80ms] 75% from 4 tests

Server-side resources used by orcas Responsive Wiki
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,567.39ms on /wp-admin/admin.php?page=orcas-upgrade)
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1537.20 ▲1.01
Dashboard /wp-admin3.57 ▲0.2344.53 ▼15.35
Posts /wp-admin/edit.php3.61 ▲0.2549.15 ▲4.53
Add New Post /wp-admin/post-new.php6.20 ▲0.3176.32 ▼28.97
Media Library /wp-admin/upload.php3.45 ▲0.2234.63 ▲0.11
License & Shop /wp-admin/admin.php?page=orcas-upgrade3.521,567.39
Wiki /wp-admin/edit.php?post_type=wiki3.4533.82
Add New /wp-admin/post-new.php?post_type=wiki3.5942.81
Wiki /wp-admin/admin.php?page=responsive-wiki-settings3.8438.35

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 222 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for orcas Responsive Wiki
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲12514.15 ▼0.411.65 ▲0.0942.04 ▲2.21
Dashboard /wp-admin2,278 ▲1005.65 ▲0.0186.32 ▼16.2639.00 ▼3.80
Posts /wp-admin/edit.php2,180 ▲802.01 ▼0.0139.64 ▲4.3635.20 ▼1.04
Add New Post /wp-admin/post-new.php1,568 ▲4222.99 ▼0.19683.35 ▼18.4863.40 ▲9.15
Media Library /wp-admin/upload.php1,483 ▲804.17 ▼0.0295.50 ▼1.1642.60 ▼1.53
License & Shop /wp-admin/admin.php?page=orcas-upgrade1,0601.6423.1949.45
Wiki /wp-admin/edit.php?post_type=wiki1,1431.9832.0227.73
Add New /wp-admin/post-new.php?post_type=wiki2,2297.56168.2861.63
Wiki /wp-admin/admin.php?page=responsive-wiki-settings4,4172.2329.4264.44

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+4
    Illegal string offset 'image'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+8
    Illegal string offset 'name'
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Illegal string offset 'is_extension'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+12
    Illegal string offset 'require'
  • 36 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Illegal string offset 'slug'
  • 16 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Illegal string offset 'free'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+37
    Illegal string offset 'product'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+129
    Illegal string offset 'short_description'
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Warning in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Illegal string offset 'version'
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+4
    Undefined index: image
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+8
    Undefined index: name
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Undefined index: is_extension
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+12
    Undefined index: require
  • 19 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Undefined index: slug
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Undefined index: free
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+37
    Undefined index: product
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+129
    Undefined index: short_description
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Notice in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/item.phtml+141
    Undefined index: version

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'de\\orcas\\core\\Base' not found in wp-content/plugins/orcas-responsive-wiki/core/Category/Category.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/view.php:14
    • > PHP Notice
      Undefined variable: error in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/view.php on line 7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/lib/view.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/orcas-responsive-wiki/templates/new-wiki-form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orcas-responsive-wiki/include/autoload.php:23
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/orcas-responsive-wiki/templates/wiki-list.php:3
    • > PHP Notice
      Undefined variable: preFill in wp-content/plugins/orcas-responsive-wiki/templates/wiki-details.php on line 1
    • > PHP Fatal error
      Uncaught Error: Class 'de\\orcas\\core\\Base' not found in wp-content/plugins/orcas-responsive-wiki/core/Search/Search.php:11
    • > PHP Notice
      Undefined variable: success in wp-content/plugins/orcas-responsive-wiki/include/Upgrade/views/view.php on line 3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Network (severe)
    wp-admin/r - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=orcas-upgrade
    • > Network (severe)
    wp-admin/E - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

orcas-responsive-wiki/orcas-responsive-wiki.php 85% from 13 tests

The entry point to "orcas Responsive Wiki" version 1.2.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
  • Domain Path: The domain path must begin with a forward slash character ("/languages/")

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
There were no executable files found in this plugin54,942 lines of code in 176 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1019604,70227,281
CSS21144509,219
Sass1522859,197
PHP311,5072,3545,673
SVG3003,327
PO File38088228
Markdown111016
JSON1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity63.00
▷ Minimum class complexity1.00
▷ Maximum class complexity553.00
Average method complexity5.69
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods185
▷ Static methods168.65%
▷ Public methods17292.97%
▷ Protected methods73.78%
▷ Private methods63.24%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants70
▷ Global constants70100.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 were not PNG files found in your plugin