10% arcadeready

Code Review | Arcade Ready

WordPress plugin Arcade Ready scored 10% from 54 tests.

About plugin

  • Plugin page: arcadeready
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Feb 6, 2017
  • Latest release: Mar 8, 2017
  • Number of updates: 13
  • Update frequency: every 9.8 days
  • Top authors: bytephp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 6,466 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/arcadeready/ArcadeReady.php+58
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.25MB] [CPU: ▼3.45ms] Passed 4 tests

A check of server-side resources used by Arcade Ready
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.57 ▼1.34
Dashboard /wp-admin3.54 ▲0.2445.77 ▼5.86
Posts /wp-admin/edit.php3.66 ▲0.3051.56 ▲8.28
Add New Post /wp-admin/post-new.php6.14 ▲0.2686.32 ▼9.73
Media Library /wp-admin/upload.php3.47 ▲0.2436.15 ▲3.14
Game Categories /wp-admin/edit-tags.php?taxonomy=gamecategory&post_type=ar_games3.4634.85
Game Tags /wp-admin/edit-tags.php?taxonomy=gametags&post_type=ar_games3.4634.74
Add Game /wp-admin/post-new.php?post_type=ar_games3.5646.95
All Games /wp-admin/edit.php?post_type=ar_games3.5138.37

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
ArcadeReadyOptions
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Arcade Ready
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲11213.24 ▼1.156.55 ▲4.6642.89 ▼9.95
Dashboard /wp-admin2,253 ▲654.87 ▼0.03111.46 ▼3.3838.88 ▼1.06
Posts /wp-admin/edit.php2,140 ▲512.04 ▲0.0338.83 ▲2.4833.93 ▲2.22
Add New Post /wp-admin/post-new.php1,556 ▲3723.11 ▼0.32676.58 ▼6.0554.61 ▼4.25
Media Library /wp-admin/upload.php1,433 ▲424.22 ▼0.00100.91 ▼1.9143.62 ▼2.47
Game Categories /wp-admin/edit-tags.php?taxonomy=gamecategory&post_type=ar_games1,3102.1527.5327.82
Game Tags /wp-admin/edit-tags.php?taxonomy=gametags&post_type=ar_games1,2822.1531.7432.59
Add Game /wp-admin/post-new.php?post_type=ar_games2,6607.98178.5880.44
All Games /wp-admin/edit.php?post_type=ar_games1,1171.9535.7429.69

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ar_games
    • > Notice in wp-includes/pluggable.php+2387
    Array to string conversion

SRP 0% 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 take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/arcadeready/ArcadeReady.php
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/arcadeready/lib/shortcodeHandler.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/arcadeready/lib/metaHandler.php:134
    • > PHP Notice
      Undefined variable: ARgameHandler in wp-content/plugins/arcadeready/lib/shortcodeHandler.php on line 256

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were 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
These attributes need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
Please take inspiration from this readme.txt

arcadeready/ArcadeReady.php 92% from 13 tests

"Arcade Ready" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("arcadeready.php" instead of "ArcadeReady.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
Everything looks great! No dangerous files found in this plugin1,430 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP52420861
SVG100565
CSS2032
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity26.80
▷ Minimum class complexity4.00
▷ Maximum class complexity76.00
Average method complexity4.58
▷ Minimum method complexity1.00
▷ Maximum method complexity54.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods36
▷ Static methods513.89%
▷ Public methods3288.89%
▷ Protected methods00.00%
▷ Private methods411.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected