84% embed-spanish-wordle

Code Review | Embed Spanish Wordle

WordPress plugin Embed Spanish Wordle scored84%from 54 tests.

About plugin

  • Plugin page: embed-spanish-wordle
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 20, 2022
  • Latest release: Jun 20, 2022
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: codelessthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /220 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.37ms] Passed 4 tests

A check of server-side resources used by Embed Spanish Wordle
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.64 ▼5.04
Dashboard /wp-admin3.35 ▲0.0548.10 ▲0.16
Posts /wp-admin/edit.php3.47 ▲0.1151.51 ▲1.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0695.79 ▲3.10
Media Library /wp-admin/upload.php3.28 ▲0.0439.10 ▼6.10

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Embed Spanish Wordle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.77 ▲0.585.23 ▼1.1342.00 ▼6.70
Dashboard /wp-admin2,213 ▲254.87 ▼0.10114.27 ▲2.7039.63 ▼3.04
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0537.89 ▼1.8235.80 ▲2.37
Add New Post /wp-admin/post-new.php1,517 ▼221.94 ▼1.35613.72 ▼54.7272.46 ▼2.34
Media Library /wp-admin/upload.php1,383 ▼24.20 ▼0.03102.01 ▼35.3743.30 ▼0.42

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/embed-spanish-wordle/admin/partials/embed-spanish-wordle-admin-display.php
    • > /wp-content/plugins/embed-spanish-wordle/public/partials/embed-spanish-wordle-public-display.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: wordle, spanish wordle, game

embed-spanish-wordle/embed-spanish-wordle.php Passed 13 tests

Analyzing the main PHP file in "Embed Spanish Wordle" version 1.0.0
109 characters long description:
A Wordle game for spanish users that embeds the SpanishWordle.com game into your website using one shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin181 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12119535175
JavaScript24546
CSS2080

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods24
▷ Static methods28.33%
▷ Public methods1979.17%
▷ Protected methods00.00%
▷ Private methods520.83%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin