83% ar-play

Code Review | AR Play

WordPress plugin AR Play scored83%from 54 tests.

About plugin

  • Plugin page: ar-play
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3
  • WordPress version: 6.3.1
  • First release: Dec 23, 2019
  • Latest release: Dec 25, 2019
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: artyplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,186 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.20MB] [CPU: ▼0.07ms] Passed 4 tests

Server-side resources used by AR Play
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2852.44 ▲11.74
Dashboard /wp-admin3.55 ▲0.2155.96 ▼5.35
Posts /wp-admin/edit.php3.61 ▲0.2550.53 ▲0.05
Add New Post /wp-admin/post-new.php6.07 ▲0.1894.50 ▼4.66
Media Library /wp-admin/upload.php3.39 ▲0.1741.53 ▲9.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 36 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
arplay_woocommerce
arplay_app_url
arplay_api_url
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for AR Play
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,272 ▲51116.01 ▲1.6522.54 ▲20.9243.23 ▼0.68
Dashboard /wp-admin2,349 ▲1696.08 ▲0.4299.82 ▲11.0641.55 ▼3.45
Posts /wp-admin/edit.php2,291 ▲1913.36 ▲1.3651.47 ▲14.6734.89 ▲0.62
Add New Post /wp-admin/post-new.php1,552 ▲1723.11 ▲4.95646.11 ▼1.1535.77 ▼24.51
Media Library /wp-admin/upload.php1,429 ▲294.16 ▲0.0382.18 ▼35.1146.28 ▲3.80

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ar-play/templates/admin.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/PositionCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/Enqueue.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ar-play/templates/shortcode.php:68
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/AdminCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/ar-play/templates/woocommerce.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/SettingsLinks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Api/Callbacks/ManagerCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Pages/Dashboard.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'IncArplay\\Base\\BaseController' not found in wp-content/plugins/ar-play/inc/Base/WoocommerceController.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ar-play === )
  • Donate link: Invalid url: "ar-ty.com"
Please take inspiration from this readme.txt

ar-play/arplay.php 92% from 13 tests

Analyzing the main PHP file in "AR Play" version 1.0.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ar-play.php" instead of "arplay.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin1,541 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP274642721,286
CSS142156
SVG10144
JavaScript10035
JSON20020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity6.71
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods85
▷ Static methods89.41%
▷ Public methods8397.65%
▷ Protected methods00.00%
▷ Private methods22.35%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.23MB with 0.17MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/positions.png239.89KB61.04KB▼ 74.56%