84% casino-review

Code Review | Casino Review affiliate Plugin

WordPress plugin Casino Review affiliate Plugin scored84%from 54 tests.

About plugin

  • Plugin page: casino-review
  • Plugin version: 2.38
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2023
  • Latest release: Mar 15, 2023
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: flytonic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /475 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.50ms] Passed 4 tests

An overview of server-side resources used by Casino Review affiliate Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.07 ▼6.22
Dashboard /wp-admin3.39 ▲0.0848.88 ▼2.87
Posts /wp-admin/edit.php3.44 ▲0.0847.22 ▼2.22
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.95 ▼10.70
Media Library /wp-admin/upload.php3.31 ▲0.0841.89 ▲4.28
Document /wp-admin/edit.php?post_type=casino_review&page=casino_review_document3.2731.94
Plugin Casinos /wp-admin/edit.php?post_type=casino_review3.3540.63
Add New Casino /wp-admin/post-new.php?post_type=casino_review3.3647.54

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Casino Review affiliate Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,876 ▲11513.58 ▼0.792.20 ▲0.3541.13 ▼6.51
Dashboard /wp-admin2,252 ▲525.84 ▼0.04100.60 ▼14.4343.15 ▼0.91
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0035.09 ▼1.6338.71 ▼0.15
Add New Post /wp-admin/post-new.php1,571 ▲2623.18 ▲0.04639.81 ▼56.8757.13 ▲4.04
Media Library /wp-admin/upload.php1,428 ▲254.23 ▲0.06100.51 ▼6.9840.36 ▼5.83
Document /wp-admin/edit.php?post_type=casino_review&page=casino_review_document8872.0525.0631.55
Plugin Casinos /wp-admin/edit.php?post_type=casino_review1,1001.9430.1130.01
Add New Casino /wp-admin/post-new.php?post_type=casino_review1,7613.6565.1031.88

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/casino-review/includes/plugin-setup.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: You can take inspiration from this readme.txt

casino-review/casino_review.php 92% from 13 tests

Analyzing the main PHP file in "Casino Review affiliate Plugin" version 2.38
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("casino-review.php" instead of "casino_review.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
Success! There were no dangerous files found in this plugin269 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP617528268
CSS1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/casino.png9.12KB3.62KB▼ 60.25%