10% aetherplayer

Code Review | AetherPlayer

WordPress plugin AetherPlayer scored 10% from 54 tests.

About plugin

  • Plugin page: aetherplayer
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: May 31, 2016
  • Number of updates: 5
  • Update frequency: every 40.6 days
  • Top authors: peinhu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 797 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AetherPlayer::AetherPlayer_active() should not be called statically

Server metrics [RAM: ▼0.94MB] [CPU: ▼35.59ms] Passed 4 tests

An overview of server-side resources used by AetherPlayer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0726.05 ▼12.28
Dashboard /wp-admin3.00 ▼0.3022.68 ▼25.40
Posts /wp-admin/edit.php3.01 ▼0.3525.01 ▼25.02
Add New Post /wp-admin/post-new.php3.00 ▼2.8822.91 ▼78.10
Media Library /wp-admin/upload.php3.00 ▼0.2220.68 ▼13.82
AetherPlayer /wp-admin/options-general.php?page=aetherplayer3.0123.50

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

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

Browser metrics Passed 4 tests

AetherPlayer: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,979 ▲24413.68 ▼0.708.84 ▲7.2166.49 ▲15.61
Dashboard /wp-admin2,213 ▲255.85 ▼0.21103.96 ▼12.6139.28 ▼4.44
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0439.75 ▼1.0735.67 ▼0.20
Add New Post /wp-admin/post-new.php1,517 ▼2717.84 ▼0.77707.20 ▲109.4656.85 ▲8.63
Media Library /wp-admin/upload.php1,392 ▲104.18 ▼0.0396.05 ▼1.6045.50 ▲2.44
AetherPlayer /wp-admin/options-general.php?page=aetherplayer8402.0625.6327.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AetherPlayer_Admin::init() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=aetherplayer
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AetherPlayer_Admin::init() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=aetherplayer
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method AetherPlayer_Admin::aetherplayer_admin_page() should not be called statically
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=aetherplayer
    • > Deprecated in wp-content/plugins/aetherplayer/class.aetherplayer-admin.php+19
    Non-static method AetherPlayer::view() should not be called statically

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/aetherplayer/aetherplayer.php
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aetherplayer/views/script.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/aetherplayer/views/main.php:48
    • > PHP Notice
      Undefined variable: rows in wp-content/plugins/aetherplayer/views/main.php on line 15
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/aetherplayer/views/main.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (The front-end interface of the player in your homepage.)
You can look at the official readme.txt

aetherplayer/aetherplayer.php 92% from 13 tests

The principal PHP file in "AetherPlayer" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected638 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37645304
PHP56037241
CSS131044
Markdown216037
HTML11012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin