68% easy-casino-table

Code Review | Easy Casino Table

WordPress plugin Easy Casino Table scored 68% from 54 tests.

About plugin

  • Plugin page: easy-casino-table
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 8, 2021
  • Latest release: May 31, 2021
  • Number of updates: 16
  • Update frequency: every 3.4 days
  • Top authors: calln (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,078 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.87MB] [CPU: ▼32.05ms] Passed 4 tests

Analyzing server-side resources used by Easy Casino Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.50 ▼5.63
Dashboard /wp-admin3.07 ▼0.2324.49 ▼22.44
Posts /wp-admin/edit.php3.07 ▼0.2826.87 ▼23.63
Add New Post /wp-admin/post-new.php3.07 ▼2.8125.95 ▼71.43
Media Library /wp-admin/upload.php3.07 ▼0.1622.65 ▼10.69
Add New review /wp-admin/post-new.php?post_type=ect-casino3.0726.41
Settings /wp-admin/edit.php?post_type=ect-casino&page=ect-casino3.0725.13
Reviews /wp-admin/edit.php?post_type=ect-casino3.0725.39

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Easy Casino Table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.32 ▼1.241.62 ▼0.1038.85 ▼6.64
Dashboard /wp-admin2,237 ▲495.87 ▲0.93107.00 ▲2.6642.01 ▼2.85
Posts /wp-admin/edit.php2,120 ▲282.02 ▼0.0539.90 ▼0.3634.94 ▼4.90
Add New Post /wp-admin/post-new.php6,464 ▲4,94523.63 ▲0.52850.30 ▲181.4075.33 ▲14.27
Media Library /wp-admin/upload.php1,422 ▲404.18 ▼0.0396.63 ▼0.9142.26 ▼4.85
Add New review /wp-admin/post-new.php?post_type=ect-casino6,46120.80891.6134.61
Settings /wp-admin/edit.php?post_type=ect-casino&page=ect-casino8232.0324.3630.36
Reviews /wp-admin/edit.php?post_type=ect-casino1,0842.1030.0929.29

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
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=ect-casino
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
    • > GET request to /wp-admin/post-new.php?post_type=ect-casino
    • > User notice in wp-includes/functions.php+5905
    Function register_rest_route was called incorrectly. The REST API route definition for wl/v1/ect-casino is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)

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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/easy-casino-table/includes/form.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/easy-casino-table/templates/single-ect-casino.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-casino-table/includes/ect-redirect.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-casino-table/includes/ect-redirect-tc.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-casino-table/includes/ect-post-type.php:2

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Donate link: Invalid URI found ("")
The official readme.txt might help

easy-casino-table/plugin.php 92% from 13 tests

The main PHP file in "Easy Casino Table" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-casino-table.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected730 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP97485420
Sass391245
JavaScript3111063
CSS2002

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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 functions2095.24%
▷ Anonymous functions14.76%
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