84% krakenfiles-com-audio-player

Code Review | KrakenFiles.com audio player

WordPress plugin KrakenFiles.com audio player scored84%from 54 tests.

About plugin

  • Plugin page: krakenfiles-com-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3
  • WordPress version: 6.3.1
  • First release: Oct 13, 2018
  • Latest release: Nov 16, 2019
  • Number of updates: 4
  • Update frequency: every 100.0 days
  • Top authors: krakenfiles (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.28ms] Passed 4 tests

An overview of server-side resources used by KrakenFiles.com audio player
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.27 ▼6.08
Dashboard /wp-admin3.34 ▼0.0048.03 ▼16.91
Posts /wp-admin/edit.php3.39 ▲0.0450.11 ▼4.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.42 ▼7.50
Media Library /wp-admin/upload.php3.26 ▲0.0338.28 ▼10.63
KrakenFiles.com audio player /wp-admin/options-general.php?page=krakenfiles-com-audio-player/kraken-embed-audio.php3.2332.86

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

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

Browser metrics Passed 4 tests

KrakenFiles.com audio player: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.46 ▲0.101.59 ▼0.4839.65 ▼4.32
Dashboard /wp-admin2,202 ▲225.70 ▲0.0681.50 ▼15.4838.30 ▼7.63
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0741.82 ▲1.5935.99 ▼1.02
Add New Post /wp-admin/post-new.php1,548 ▲2223.29 ▲5.64665.06 ▼19.5556.19 ▼4.60
Media Library /wp-admin/upload.php1,404 ▲74.19 ▼0.1297.36 ▼20.4044.19 ▼5.94
KrakenFiles.com audio player /wp-admin/options-general.php?page=krakenfiles-com-audio-player/kraken-embed-audio.php8492.0624.2927.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/krakenfiles-com-audio-player/kraken-embed-audio.php:29

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

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin settings page), #2 (You must only put some Zippyshare links to your Wordpress content), #3 (Working plugin)
The official readme.txt might help

krakenfiles-com-audio-player/kraken-embed-audio.php 92% from 13 tests

"KrakenFiles.com audio player" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("krakenfiles-com-audio-player.php" instead of "kraken-embed-audio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13633117
PO File1212458

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.16
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png30.48KB12.77KB▼ 58.12%
screenshot-3.png50.08KB21.49KB▼ 57.09%
images/download_button.png14.34KB5.93KB▼ 58.68%
screenshot-1.png17.16KB7.76KB▼ 54.77%