78% ctl-arcade-lite

Code Review | CTL Arcade Lite

WordPress plugin CTL Arcade Lite scored78%from 54 tests.

About plugin

  • Plugin page: ctl-arcade-lite
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.6
  • WordPress version: 6.3.1
  • First release: Aug 31, 2016
  • Latest release: Sep 19, 2016
  • Number of updates: 20
  • Update frequency: every 1.0 days
  • Top authors: codethislab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /5,313 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.12MB] [CPU: ▲0.09ms] Passed 4 tests

An overview of server-side resources used by CTL Arcade Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1241.78 ▼1.61
Dashboard /wp-admin3.43 ▲0.1350.88 ▼3.80
Posts /wp-admin/edit.php3.54 ▲0.1851.86 ▲3.58
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.70 ▲2.17
Media Library /wp-admin/upload.php3.35 ▲0.1241.01 ▲3.80
Documentation /wp-admin/admin.php?page=ctl_arcade_lite_page_documentation3.3235.41
About us /wp-admin/admin.php?page=ctl_arcade_lite_page_company3.3238.91
Manage Games /wp-admin/admin.php?page=ctl_arcade_lite_page_manage_games3.3240.58
Settings (PRO) /wp-admin/admin.php?page=ctl_arcade_lite_main_menu3.3231.32

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 43 new files
Database: 2 new tables, 7 new options
New tables
wp_ctl_arcade_lite_games
wp_ctl_arcade_lite_settings
New WordPress options
db_upgraded
CTL_ARCADE_LITE_PLUGIN_VERSION
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for CTL Arcade Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲16913.58 ▼0.649.88 ▲8.1541.66 ▼0.47
Dashboard /wp-admin2,256 ▲855.80 ▲0.13122.79 ▲27.8040.20 ▼1.44
Posts /wp-admin/edit.php2,164 ▲613.06 ▲1.0379.37 ▲42.5537.97 ▲2.16
Add New Post /wp-admin/post-new.php1,572 ▲4623.28 ▲0.21667.96 ▼43.3760.33 ▲8.62
Media Library /wp-admin/upload.php1,461 ▲645.18 ▲1.07118.87 ▲7.1949.07 ▲0.85
Documentation /wp-admin/admin.php?page=ctl_arcade_lite_page_documentation1,8949.90337.91112.59
About us /wp-admin/admin.php?page=ctl_arcade_lite_page_company2,14816.02334.74104.03
Manage Games /wp-admin/admin.php?page=ctl_arcade_lite_page_manage_games9512.4039.0532.58
Settings (PRO) /wp-admin/admin.php?page=ctl_arcade_lite_main_menu1,0942.3039.7832.76

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
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_page_documentation
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_page_company
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_page_company
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_page_company
    • > Deprecation (warning) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
    • > GET request to /wp-admin/admin.php?page=ctl_arcade_lite_page_company
    • > Console-api (severe) in unknown
    https://static.xx.fbcdn.net/rsrc.php/v3/yD/r/CxzjCMQABR5.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

ctl-arcade-lite/ctl-arcade-lite.php Passed 13 tests

Analyzing the main PHP file in "CTL Arcade Lite" version 1.0
67 characters long description:
Install and manage high quality HTML5 games in your wordpress site.

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
Everything looks great! No dangerous files found in this plugin2,820 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
CSS8320711,478
PHP930318841
JavaScript51228470
SVG10031

PHP code Passed 2 tests

This is a very shot 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.18
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%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.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
14 PNG files occupy 4.36MB with 2.59MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ctl_collage_2.png2,297.84KB627.96KB▼ 72.67%
images/ctl_logo_white.png10.97KB5.43KB▼ 50.49%
images/ctl-arcade-icon.png38.50KB13.36KB▼ 65.30%
images/shortcode_game_widget.png127.71KB45.41KB▼ 64.45%
images/traffic_light_circle_green.png2.32KB1.32KB▼ 43.33%