10% narando

Code Review | narando

WordPress plugin narando scored10%from 54 tests.

About plugin

  • Plugin page: narando
  • Plugin version: 1.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.6
  • WordPress version: 6.3.1
  • First release: Jul 16, 2014
  • Latest release: Jun 28, 2021
  • Number of updates: 38
  • Update frequency: every 66.8 days
  • Top authors: narando (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,311 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/narando/Narando_Plugin.php+92
    count(): Parameter must be an array or an object that implements Countable

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

A check of server-side resources used by narando
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.08 ▼3.01
Dashboard /wp-admin3.34 ▼0.0144.22 ▼18.71
Posts /wp-admin/edit.php3.45 ▲0.0944.17 ▼3.99
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.85 ▼22.75
Media Library /wp-admin/upload.php3.26 ▲0.0332.32 ▼2.30
narando /wp-admin/plugins.php?page=Narando_PluginSettings3.2333.30

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 43 new options
New WordPress options
Narando_Plugin_NRButtonPlayeriFrameContainerColor
Narando_Plugin_NRColorText
Narando_Plugin_NRButtonPlayerFrameColor
Narando_Plugin_NRPlayerMode
Narando_Plugin_NRButtonPlayerFloating
Narando_Plugin_NRButtonPlayerAutoplay
Narando_Plugin_NRAutoplay
Narando_Plugin_NRButtonBackgroundColor
Narando_Plugin_NRButtonPlayerBackgroundColor
Narando_Plugin_NRButtonPlayerTextColor
...

Browser metrics Passed 4 tests

A check of browser resources used by narando
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.85 ▲0.446.12 ▲4.5544.68 ▲3.94
Dashboard /wp-admin2,213 ▲255.79 ▲0.9194.15 ▼11.6238.16 ▼6.84
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0135.35 ▼3.6929.83 ▼4.22
Add New Post /wp-admin/post-new.php1,541 ▲2223.42 ▲0.46672.82 ▲68.3577.80 ▲20.55
Media Library /wp-admin/upload.php1,386 ▲44.23 ▲0.0296.59 ▼4.4741.26 ▼2.28
narando /wp-admin/plugins.php?page=Narando_PluginSettings1,6562.4435.1879.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 43 options in the database
    • Narando_Plugin_NRButtonPlayerHideListens
    • Narando_Plugin_NRButtonBorderRadius
    • Narando_Plugin_NRHideSpeaker
    • Narando_Plugin_NRButtonPlayerVersion
    • Narando_Plugin_NRButtonPlayerControlsColor
    • Narando_Plugin_NRButtonBackgroundColorHover
    • Narando_Plugin_NRButtonPlayerFloating
    • Narando_Plugin_NRButtonPlayerHideSpeaker
    • Narando_Plugin_NRPlayerRadius
    • Narando_Plugin_NRPlayerMode
    • ...

Smoke tests 50% 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)
Good news, no errors were detected

SRP 50% 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
The following issues need your attention
  • 9× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/narando/narando.php
    • > /wp-content/plugins/narando/Narando_InstallIndicator.php
    • > /wp-content/plugins/narando/Narando_LifeCycle.php
    • > /wp-content/plugins/narando/Narando_PlayerShortCode.php
    • > /wp-content/plugins/narando/Narando_Plugin.php
    • > /wp-content/plugins/narando/Narando_ShortCodeLoader.php
    • > /wp-content/plugins/narando/Narando_OptionsManager.php
    • > /wp-content/plugins/narando/Narando_ShortCodeScriptLoader.php
    • > /wp-content/plugins/narando/narando_init.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/plugins.php?page=Narando_PluginSettings
    • > Network (severe)
    wp-content/plugins/narando/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/plugins.php?page=Narando_PluginSettings
    • > Network (severe)
    wp-content/plugins/narando/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/plugins.php?page=Narando_PluginSettings
    • > Network (severe)
    wp-content/plugins/narando/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: articles, web player, narrator, news, audio

narando/narando.php Passed 13 tests

"narando" version 1.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
132 characters long description:
Lass dir interessante Artikel vorlesen. Lausche den Stimmen echter Vorleser während du fährst, trainierst, kochst oder aufräumst.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,456 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP92867661,073
CSS131152383

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity19.86
▷ Minimum class complexity1.00
▷ Maximum class complexity78.00
Average method complexity2.59
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes228.57%
▷ Concrete classes571.43%
▷ Final classes00.00%
Methods85
▷ Static methods00.00%
▷ Public methods5767.06%
▷ Protected methods2832.94%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin