84% wp-game-of-life

Code Review | Wp Game Of Life

WordPress plugin Wp Game Of Life scored84%from 54 tests.

About plugin

  • Plugin page: wp-game-of-life
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Mar 17, 2014
  • Latest release: Mar 17, 2014
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: vilmosioo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,067 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Wp Game Of Life
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.00 ▼6.43
Dashboard /wp-admin3.31 ▲0.0145.47 ▼5.02
Posts /wp-admin/edit.php3.36 ▲0.0145.38 ▲0.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.99 ▼4.91
Media Library /wp-admin/upload.php3.23 ▲0.0136.50 ▲0.50

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

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

Browser metrics Passed 4 tests

Wp Game Of Life: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.144.79 ▲2.8349.03 ▲5.49
Dashboard /wp-admin2,206 ▲184.88 ▼0.04106.86 ▼7.8538.36 ▼6.07
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0241.84 ▲3.7034.48 ▼4.25
Add New Post /wp-admin/post-new.php1,532 ▲1223.35 ▲0.06667.77 ▼10.9056.24 ▼6.06
Media Library /wp-admin/upload.php1,385 ▼64.25 ▲0.0897.20 ▼7.6041.38 ▼3.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-game-of-life/wp-game-of-life.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: html5, game of life, canvas

wp-game-of-life/wp-game-of-life.php Passed 13 tests

This is the main PHP file of "Wp Game Of Life" version 0.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
45 characters long description:
A game of life simulation using HTML5 canvas.

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 detected66 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1223938
Markdown116027
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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%
Methods6
▷ Static methods116.67%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.12MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) screenshot-1.png58.19KB0.00KB▼ 100.00%
(invalid) screenshot-2.png67.36KB0.00KB▼ 100.00%