62% memoria-ticket-system

Code Review | Memoria Ticket System

WordPress plugin Memoria Ticket System scored62%from 54 tests.

About plugin

  • Plugin page: memoria-ticket-sy...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Aug 13, 2014
  • Latest release: Nov 17, 2014
  • Number of updates: 9
  • Update frequency: every 10.9 days
  • Top authors: vatanbytyqi (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /2,294 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.01MB] [CPU: ▼40.11ms] Passed 4 tests

Analyzing server-side resources used by Memoria Ticket System
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.96 ▼0.5014.77 ▼28.90
Dashboard /wp-admin3.00 ▼0.3118.82 ▼31.03
Posts /wp-admin/edit.php3.00 ▼0.3619.95 ▼28.12
Add New Post /wp-admin/post-new.php3.00 ▼2.8918.54 ▼72.39
Media Library /wp-admin/upload.php3.00 ▼0.2318.32 ▼16.26
Settings /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket3.0020.75

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

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

Browser metrics Passed 4 tests

Memoria Ticket System: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲10913.44 ▼0.942.12 ▼0.3740.97 ▼1.96
Dashboard /wp-admin2,229 ▲385.92 ▲1.0699.38 ▼15.6173.52 ▲25.87
Posts /wp-admin/edit.php2,130 ▲412.19 ▲0.1736.52 ▼1.1134.96 ▲1.19
Add New Post /wp-admin/post-new.php1,571 ▲5718.51 ▲1.01700.82 ▲15.5240.18 ▼16.39
Media Library /wp-admin/upload.php1,423 ▲354.28 ▲0.0996.28 ▼4.8767.96 ▲20.81
Settings /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket1,7627.14146.13113.49

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/memoria-ticket-system/memoria-ticket-system.php+749
    Undefined index: _wpnonce
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Notice in wp-content/plugins/memoria-ticket-system/memoria-ticket-system.php+749
    Undefined index: _wpnonce
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Notice in wp-content/plugins/memoria-ticket-system/includes/default_admin_settings_form.php+156
    Trying to access array offset on value of type bool

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
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_password_required() in wp-content/plugins/memoria-ticket-system/includes/single-ticket-comments-form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/memoria-ticket-system/memoria-ticket-system.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sts_get_creator_header() in wp-content/plugins/memoria-ticket-system/includes/default_admin_settings_form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/memoria-ticket-system/includes/single-ticket-view.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/memoria-ticket-system/includes/default_create_form.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Network (severe)
    wp-content/plugins/memoria-ticket-system/includes/jquery/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Network (severe)
    wp-content/plugins/memoria-ticket-system/includes/jquery/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Network (severe)
    wp-content/plugins/memoria-ticket-system/includes/jquery/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=sts-ticket&page=sts-ticket
    • > Network (severe)
    wp-content/plugins/memoria-ticket-system/includes/jquery/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === memoria-ticket-system === )
You can look at the official readme.txt

memoria-ticket-system/memoria-ticket-system.php 92% from 13 tests

Analyzing the main PHP file in "Memoria Ticket System" version 1.0.4
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 423 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,635 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP62071831,398
CSS237521,186
JavaScript15051

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/smiley_red_default.png3.98KB1.10KB▼ 72.27%
images/smiley_orange_active.png2.27KB1.41KB▼ 37.95%
images/smiley_green_active.png2.50KB1.42KB▼ 43.36%
images/smiley_green_default.png4.04KB1.16KB▼ 71.34%
images/smiley_orange_default.png3.81KB1.03KB▼ 73.00%