74% wp-tic-tac-toe

Code Review | Wp Tic-Tac-Toe

WordPress plugin Wp Tic-Tac-Toe scored74%from 54 tests.

About plugin

  • Plugin page: wp-tic-tac-toe
  • Plugin version: 1.5
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Dec 14, 2022
  • Number of updates: 22
  • Update frequency: every 39.7 days
  • Top authors: johnvictor82 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /2,159 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.71MB] [CPU: ▼54.34ms] Passed 4 tests

A check of server-side resources used by Wp Tic-Tac-Toe
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.179.22 ▼37.11
Dashboard /wp-admin2.31 ▼1.0310.75 ▼52.68
Posts /wp-admin/edit.php2.31 ▼1.0510.96 ▼37.89
Add New Post /wp-admin/post-new.php2.31 ▼3.5814.26 ▼89.66
Media Library /wp-admin/upload.php2.31 ▼0.9213.61 ▼23.18

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_wpttt_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Wp Tic-Tac-Toe
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲4414.73 ▲0.172.63 ▲0.7743.43 ▲1.46
Dashboard /wp-admin2,214 ▲345.66 ▲0.03123.53 ▲22.5543.43 ▲5.40
Posts /wp-admin/edit.php2,125 ▲252.03 ▲0.0141.28 ▼1.6637.45 ▼0.10
Add New Post /wp-admin/post-new.php1,545 ▲923.64 ▲0.43626.15 ▼40.1932.87 ▼27.75
Media Library /wp-admin/upload.php1,422 ▲254.26 ▼0.0394.91 ▼11.2743.17 ▼2.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WPTTT_WIDGET is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_wpttt_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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-tic-tac-toe/wptictactoe.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4 in wp-tic-tac-toe/assets to your readme.txt
The official readme.txt might help

wp-tic-tac-toe/wptictactoe.php 92% from 13 tests

The entry point to "Wp Tic-Tac-Toe" version 1.5 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-tic-tac-toe.php" instead of "wptictactoe.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 detected428 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12613246
PHP23617148
CSS19034

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/X.png1.13KB0.71KB▼ 37.12%
images/O.png1.12KB0.73KB▼ 34.67%