72% flash-oyunlar-ekle

Code Review | Flash Oyunlar Ekle

WordPress plugin Flash Oyunlar Ekle scored 72% from 54 tests.

About plugin

  • Plugin page: flash-oyunlar-ekle
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 5.8.1
  • First release: Apr 13, 2014
  • Latest release: May 2, 2014
  • Number of updates: 16
  • Update frequency: every 1.2 days
  • Top authors: nesticus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,402 total downloads


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.15MB] [CPU: ▼148.00ms] Passed 4 tests

A check of server-side resources used by Flash Oyunlar Ekle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.93 ▲0.2132.78 ▲11.98
Dashboard /wp-admin3.20 ▲0.1550.83 ▲6.08
Posts /wp-admin/edit.php3.26 ▲0.1541.04 ▼7.07
Add New Post /wp-admin/post-new.php5.79 ▲0.3672.89 ▼583.62
Media Library /wp-admin/upload.php3.09 ▲0.0929.79 ▼7.38
Flash Oyunlar /wp-admin/options-general.php?page=flash_games-options3.0627.40

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 1 new option
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Flash Oyunlar Ekle
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,425 ▲82916.41 ▲0.859.52 ▼0.8047.44 ▲0.86
Dashboard /wp-admin3,707 ▲7766.79 ▲0.87180.59 ▲33.68110.74 ▲1.39
Posts /wp-admin/edit.php3,486 ▲7473.43 ▲0.7387.04 ▲15.8588.09 ▼8.94
Add New Post /wp-admin/post-new.php4,732 ▲3,04916.56 ▼1.75502.61 ▲56.69126.54 ▲23.56
Media Library /wp-admin/upload.php2,494 ▲6845.68 ▲0.66179.78 ▲18.48114.38 ▼2.24
Flash Oyunlar /wp-admin/options-general.php?page=flash_games-options2,5363.4491.9576.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 option in the database
    • widget_flash_games_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=flash_games-options
    • > Notice in wp-content/plugins/flash-oyunlar-ekle/flash-oyunlar.php+195
    Undefined index: msg
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=flash_games-options
    • > Notice in wp-content/plugins/flash-oyunlar-ekle/flash-oyunlar.php+533
    Trying to get property 'ID' of non-object

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
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-oyunlar-ekle/trunk/flash-oyunlar.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flash-oyunlar-ekle/flash-oyunlar.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=flash_games-options
    • > Network (severe)
    wp-content/plugins/flash-oyunlar/jscolor.js - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=flash_games-options
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=flash_games-options 353:44 Uncaught TypeError: jQuery(...).unbind(...).live is not a function


Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 23 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Sitenizde oyunların görünümü), #2 (Gösterilecek oyunların ayarlanması), #3 (Metin editöründe Oyun Ekle butonu)
Please take inspiration from this readme.txt

flash-oyunlar-ekle/flash-oyunlar.php 85% from 13 tests

The main PHP file in "Flash Oyunlar Ekle" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 436 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("flash-oyunlar-ekle.php" instead of "flash-oyunlar.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions16100.00%
▷ Anonymous functions00.00%
▷ 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings