72% mobile-kiosk

Code Review | Mobile Kiosk

WordPress plugin Mobile Kiosk scored 72% from 54 tests.

About plugin

  • Plugin page: mobile-kiosk
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 1, 2016
  • Latest release: Jun 21, 2016
  • Number of updates: 6
  • Update frequency: every 3.5 days
  • Top authors: figoliquinn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲8.13ms] Passed 4 tests

An overview of server-side resources used by Mobile Kiosk
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1851.55 ▲9.15
Dashboard /wp-admin3.50 ▲0.2067.58 ▲16.21
Posts /wp-admin/edit.php3.60 ▲0.2465.24 ▲18.57
Add New Post /wp-admin/post-new.php6.09 ▲0.20102.60 ▼3.87
Media Library /wp-admin/upload.php3.40 ▲0.1746.36 ▲11.03
All Kiosk Galleries /wp-admin/edit.php?post_type=kioskgallery3.4651.07
Add New /wp-admin/post-new.php?post_type=kioskgallery3.5061.44
Add New /wp-admin/post-new.php?post_type=kioskslide3.4961.49
All Kiosk Slides /wp-admin/edit.php?post_type=kioskslide3.4648.56

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Mobile Kiosk
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,130 ▲38415.66 ▲1.299.71 ▲7.7943.78 ▲0.56
Dashboard /wp-admin2,391 ▲2036.64 ▲1.78134.15 ▲27.6544.09 ▲3.10
Posts /wp-admin/edit.php2,332 ▲2403.61 ▲1.6156.72 ▲18.7337.47 ▲2.60
Add New Post /wp-admin/post-new.php1,746 ▲20422.37 ▲4.29626.04 ▲27.4536.85 ▼15.77
Media Library /wp-admin/upload.php1,474 ▲834.37 ▲0.1489.69 ▼11.9746.43 ▲2.01
All Kiosk Galleries /wp-admin/edit.php?post_type=kioskgallery1,2993.5650.0728.76
Add New /wp-admin/post-new.php?post_type=kioskgallery2,2104.5192.3280.22
Add New /wp-admin/post-new.php?post_type=kioskslide1,6213.6867.6232.85
All Kiosk Slides /wp-admin/edit.php?post_type=kioskslide1,2993.5653.7631.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/mobile-kiosk/templates/slide-template.php
    • > /wp-content/plugins/mobile-kiosk/admin/slide_preview.php
    • > /wp-content/plugins/mobile-kiosk/templates/preloader.php
    • > /wp-content/plugins/mobile-kiosk/admin/slide_editor.php
    • > /wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_sources.php
    • > /wp-content/plugins/mobile-kiosk/admin/add_slide.php
    • > /wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_options/sources.php
  • 34× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Notice
      Trying to get property 'post' of non-object in wp-content/plugins/mobile-kiosk/admin/slide_preview.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_options/business-info.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mobile-kiosk/templates/single-kioskgallery--panel-left.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mobile-kiosk/admin/routes.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mobile-kiosk/admin/post_templates.php:9
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_sources.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mobile-kiosk/templates/single-kioskgallery--bar-bottom.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_slides.php:8
    • > PHP Notice
      Trying to get property 'post' of non-object in wp-content/plugins/mobile-kiosk/admin/slide_preview.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/mobile-kiosk/admin/metaboxes/gallery_options/appearance.php:8

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=kioskslide
    • > Javascript (severe) in unknown
    /wp-admin/js/post.min.js?ver=6.3.1 1:7120 Uncaught TypeError: window.tinymce.get is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes: Please take inspiration from this readme.txt

mobile-kiosk/mobile-kiosk.php 92% from 13 tests

The main file in "Mobile Kiosk" v. 1.3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 222 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin12,467 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS22,4002,5659,517
PHP223202561,118
Sass81020741
SVG100685
JavaScript6145181400
Ruby16136

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin