84% ou-tic-tac-toe

Code Review | OU TIC TAC TOE

WordPress plugin OU TIC TAC TOE scored 84% from 54 tests.

About plugin

  • Plugin page: ou-tic-tac-toe
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 8, 2017
  • Latest release: Jan 8, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: oleksandr87 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,216 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.56ms] Passed 4 tests

Analyzing server-side resources used by OU TIC TAC TOE
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.71 ▼8.98
Dashboard /wp-admin3.31 ▲0.0140.68 ▼1.50
Posts /wp-admin/edit.php3.36 ▲0.0144.60 ▼0.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.47 ▼11.45
Media Library /wp-admin/upload.php3.24 ▲0.0136.40 ▲6.73

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for OU TIC TAC TOE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13813.60 ▼0.605.79 ▲3.6548.98 ▲1.64
Dashboard /wp-admin2,206 ▲184.86 ▼0.04112.94 ▲8.2741.37 ▼2.66
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0345.09 ▲8.2832.83 ▼4.76
Add New Post /wp-admin/post-new.php1,519 ▼1823.45 ▲0.49616.35 ▼31.7664.77 ▼20.55
Media Library /wp-admin/upload.php1,391 ▲64.26 ▲0.0198.12 ▼5.0541.54 ▼5.17

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ou-tic-tac-toe/ttt_welcome.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ou-tic-tac-toe/index.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Screenshot 1) image required
You can take inspiration from this readme.txt

ou-tic-tac-toe/index.php 92% from 13 tests

The main file in "OU TIC TAC TOE" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("ou-tic-tac-toe.php" instead of "index.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 detected2,184 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3262222,152
CSS12032

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.03
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.18MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/boy.png7.30KB3.37KB▼ 53.79%
images/girl.png8.46KB3.79KB▼ 55.22%
screenshot-1.png168.32KB68.33KB▼ 59.40%