77% embed-freecell-solitaire-iframe

Code Review | Freecell Solitaire Card Game - Embed Freecell for Free - Ad-free Freecell Puzzle game

WordPress plugin Freecell Solitaire Card Game - Embed Freecell for Free - Ad-free Freecell Puzzle game scored 77% from 54 tests.

About plugin

  • Plugin page: embed-freecell-so...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.6
  • WordPress version: 6.3.1
  • First release: Mar 25, 2021
  • Latest release: Mar 25, 2021
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: onlinesolitairecardgame (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 506 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.96ms] Passed 4 tests

This is a short check of server-side resources used by Freecell Solitaire Card Game - Embed Freecell for Free - Ad-free Freecell Puzzle game
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.74 ▲0.61
Dashboard /wp-admin3.31 ▲0.0053.59 ▲0.98
Posts /wp-admin/edit.php3.36 ▲0.0154.53 ▲1.07
Add New Post /wp-admin/post-new.php5.89 ▲0.00105.60 ▲14.32
Media Library /wp-admin/upload.php3.23 ▲0.0039.44 ▲1.19

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Freecell Solitaire Card Game - Embed Freecell for Free - Ad-free Freecell Puzzle game
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▼013.64 ▼1.161.97 ▼0.0942.75 ▼0.13
Dashboard /wp-admin2,209 ▲35.85 ▲0.01101.62 ▼11.2844.51 ▲1.16
Posts /wp-admin/edit.php2,089 ▲102.04 ▲0.0739.04 ▼0.6035.96 ▲1.46
Add New Post /wp-admin/post-new.php1,520 ▼1423.02 ▼0.18694.25 ▲8.8961.02 ▼3.99
Media Library /wp-admin/upload.php1,385 ▼34.15 ▼0.06109.18 ▲13.1744.12 ▲0.86

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/embed-freecell-solitaire-iframe/embed-freecell-template.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/embed-freecell-solitaire-iframe/embed-freecell-solitaire.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% 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:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
You can look at the official readme.txt

embed-freecell-solitaire-iframe/embed-freecell-solitaire.php 77% from 13 tests

This is the main PHP file of "Freecell Solitaire Card Game - Embed Freecell for Free - Ad-free Freecell Puzzle game" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 167 characters long)
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 85 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("embed-freecell-solitaire-iframe.php" instead of "embed-freecell-solitaire.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP231219

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.00
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin