77% embed-spider-solitaire-iframe

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

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

About plugin

  • Plugin page: embed-spider-soli...
  • 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: every 0.5 days
  • Top authors: onlinesolitairecardgame (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 596 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼7.16ms] Passed 4 tests

A check of server-side resources used by Spider Solitaire Card Game - Embed Spider Solitaire for Free - Ad-free Spider Solitaire Puzzle game
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.89 ▼6.01
Dashboard /wp-admin3.31 ▲0.0143.01 ▼4.01
Posts /wp-admin/edit.php3.36 ▲0.0143.78 ▼6.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.13 ▼11.66
Media Library /wp-admin/upload.php3.23 ▲0.0135.99 ▲0.52

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Spider Solitaire Card Game - Embed Spider Solitaire for Free - Ad-free Spider Solitaire Puzzle game: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼1.011.70 ▼0.1143.55 ▼1.97
Dashboard /wp-admin2,206 ▲215.85 ▲0.97101.99 ▼2.0639.07 ▼5.03
Posts /wp-admin/edit.php2,086 ▼02.01 ▲0.0036.03 ▼1.1332.24 ▲0.23
Add New Post /wp-admin/post-new.php1,541 ▲2123.14 ▼0.03670.34 ▼15.0156.43 ▼1.22
Media Library /wp-admin/upload.php1,385 ▼34.24 ▼0.0397.00 ▼10.7741.85 ▼4.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/embed-spider-solitaire-iframe/embed-spider-one-suit-template.php
    • > /wp-content/plugins/embed-spider-solitaire-iframe/embed-spider-template.php
    • > /wp-content/plugins/embed-spider-solitaire-iframe/embed-spider-two-suits-template.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/embed-spider-solitaire-iframe/embed-spider-solitaire.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The entry point to "Spider Solitaire Card Game - Embed Spider Solitaire for Free - Ad-free Spider Solitaire Puzzle game" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 173 characters long)
  • Plugin Name: Please don't use more than 70 characters for the plugin name (currently 99 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("embed-spider-solitaire-iframe.php" instead of "embed-spider-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
No dangerous file extensions were detected55 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP471855

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin