84% miniclip-games

Code Review | Miniclip Games Arcade

WordPress plugin Miniclip Games Arcade scored 84% from 54 tests.

About plugin

  • Plugin page: miniclip-games
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2014
  • Latest release: Jul 20, 2016
  • Number of updates: 14
  • Update frequency: every 43.9 days
  • Top authors: BinaryMoon (92.86%)MiniclipGames (14.29%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active / 55,846 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 gracefully, with no errors

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

Server-side resources used by Miniclip Games Arcade
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.11 ▼3.14
Dashboard /wp-admin3.32 ▲0.0170.06 ▲18.29
Posts /wp-admin/edit.php3.37 ▲0.0149.60 ▼8.18
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.15 ▲3.97
Media Library /wp-admin/upload.php3.24 ▲0.0137.36 ▼1.37

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_miniclip_games_category
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Miniclip Games Arcade
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲12313.64 ▲0.088.11 ▲6.1645.08 ▼0.93
Dashboard /wp-admin2,206 ▼05.91 ▲0.06102.07 ▼10.8543.56 ▼0.91
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0636.94 ▼0.0534.38 ▲0.43
Add New Post /wp-admin/post-new.php1,520 ▼823.33 ▲0.07798.60 ▲115.4659.91 ▲6.16
Media Library /wp-admin/upload.php1,391 ▼04.25 ▲0.0098.47 ▼7.1342.97 ▼0.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_miniclip_games_category
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/miniclip-games/inc/widget-category.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/miniclip-games/inc/shortcode.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/miniclip-games/inc/shortcode.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: shortcode, games, arcade, miniclip, embed

miniclip-games/index.php 85% from 13 tests

Analyzing the main PHP file in "Miniclip Games Arcade" version 1.2.1
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("miniclip-games.php" instead of "index.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected342 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP4125125202
LESS121199
JavaScript221440
CSS1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.50
▷ Minimum class complexity7.00
▷ Maximum class complexity20.00
Average method complexity3.27
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin