66% awesome-arrow-navigation

Code Review | Awesome Arrow Nav

WordPress plugin Awesome Arrow Nav scored66%from 54 tests.

About plugin

  • Plugin page: awesome-arrow-nav...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2015
  • Latest release: Jun 3, 2015
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: sh3nka7a (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,202 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.35MB] [CPU: ▼1.07ms] 75% from 4 tests

This is a short check of server-side resources used by Awesome Arrow Nav
It is recommended to improve the following
  • CPU: Total CPU usage should be kept under 500.00ms (currently 650.83ms on /wp-admin/options-general.php?page=_options)
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2244.61 ▲8.70
Dashboard /wp-admin4.00 ▲0.6653.72 ▼5.39
Posts /wp-admin/edit.php3.73 ▲0.3849.52 ▲6.16
Add New Post /wp-admin/post-new.php6.33 ▲0.4580.47 ▼9.88
Media Library /wp-admin/upload.php3.59 ▲0.3637.25 ▲4.82
Redux Framework /wp-admin/tools.php?page=redux-about3.5335.60
Awesome Arrow Navigation /wp-admin/options-general.php?page=_options4.77650.83

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 493 new files
Database: no new tables, 11 new options
New WordPress options
_aanc-transients
redux_version_upgraded_from
redux-framework-tracking
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
_aanc
redux_blast
can_compress_scripts
...

Browser metrics Passed 4 tests

Awesome Arrow Nav: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲11514.55 ▲0.391.72 ▲0.1342.93 ▲3.55
Dashboard /wp-admin2,262 ▲815.53 ▼0.2081.95 ▼17.6841.48 ▲0.40
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0034.62 ▼1.6634.01 ▼2.98
Add New Post /wp-admin/post-new.php1,534 ▲523.24 ▲0.07653.01 ▼11.3555.97 ▲4.86
Media Library /wp-admin/upload.php1,408 ▲84.16 ▼0.1592.60 ▼3.6144.18 ▲1.31
Redux Framework /wp-admin/tools.php?page=redux-about1,0693.6570.9769.65
Awesome Arrow Navigation /wp-admin/options-general.php?page=_options2,0865.34131.0086.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 11 options in the database
    • theysaidso_admin_options
    • redux-framework-tracking
    • redux_version_upgraded_from
    • can_compress_scripts
    • redux_blast
    • _aanc-transients
    • widget_theysaidso_widget
    • db_upgraded
    • _aanc
    • widget_recent-posts
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=_options
    • > Error in wp-includes/Requests/src/Exception/InvalidArgument.php+29
    Uncaught WpOrg\Requests\Exception\InvalidArgument: WpOrg\Requests\Cookie::__construct(): Argument #1 ($name) must be of type string, integer given in wp-includes/Requests/src/Exception/InvalidArgument.php:29
    Stack trace:
    #0 wp-includes/Requests/src/Cookie.php(84): WpOrg\Requests\Exception\InvalidArgument::create()
    #1 wp-includes/class-wp-http.php(472): WpOrg\Requests\Cookie->__construct()
    #2 wp-includes/class-wp-http.php(352): WP_Http::normalize_cookies()
    #3 wp-includes/http.php(150): WP_Http->request()
    #4 wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/class.p.php(229): wp_remote_request()
    #5 wp-includes/class-wp-hook.php(310): Redux_P->proxy()
    #6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #7 wp-includes/plugin.php(517): WP_Hook->do_action()
    #8 wp-admin/admin-ajax.php(188): do_action()
    #9

SRP 0% from 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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/p.php
  • 29× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/templates/panel/container.tpl.php:13
    • > PHP Notice
      Undefined index: multiple_properties in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/validation/css/csstidy/data-wp.inc.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/welcome/views/changelog.php:2
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/validation/css/csstidy/data-wp.inc.php on line 34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/fields/select/elusive-icons.php:312
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/extensions/customizer/extension_customizer.php on line 358
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/extensions/customizer/extension_customizer.php on line 442
    • > PHP Warning
      in_array() expects parameter 2 to be array, null given in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/inc/validation/css/csstidy/data-wp.inc.php on line 24
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/templates/panel/header_stickybar.tpl.php:15
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/awesome-arrow-navigation/admin/ReduxCore/templates/panel/menu_container.tpl.php:16

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=_options
    • > Network (severe)
    wp-admin/admin-ajax.php?action=redux_p&nonce=0ad09cbb91&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3D0ad09cbb91%26url%3D - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/options-general.php?page=_options
    • > Security (severe) in unknown
    /wp-admin/options-general.php?page=_options - Refused to execute script from '/wp-admin/admin-ajax.php?action=redux_p&nonce=0ad09cbb91&url=http%3A%2F%2Fads.reduxframework.com%2Fapi%2Findex.php%3Fjs%26g%261%26v%3D2&proxy=http%3A%2F%2Fwp.com%2Fwp-admin%2Fadmin-ajax.php%3Faction%3Dredux_p%26nonce%3D0ad09cbb91%26url%3D' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
You can take inspiration from this readme.txt

awesome-arrow-navigation/awesome-arrow-nav.php 85% from 13 tests

The main file in "Awesome Arrow Nav" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("awesome-arrow-navigation.php" instead of "awesome-arrow-nav.php")
  • Git Repository: An alternative Git repository was detected

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin47,917 lines of code in 401 files:
LanguageFilesBlank linesComment linesLines of code
PHP1125,0017,42621,206
JavaScript1653,0682,39214,658
Sass50605586,568
CSS625411622,725
SVG2001,243
LESS59679799
PO File1223294544
Markdown234083
Bourne Shell124055
JSON10036

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 148)
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity48.72
▷ Minimum class complexity1.00
▷ Maximum class complexity792.00
Average method complexity6.44
▷ Minimum method complexity1.00
▷ Maximum method complexity148.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes95
▷ Abstract classes00.00%
▷ Concrete classes95100.00%
▷ Final classes00.00%
Methods833
▷ Static methods9411.28%
▷ Public methods56367.59%
▷ Protected methods22226.65%
▷ Private methods485.76%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants975.00%
▷ Class constants325.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
32 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin/ReduxCore/assets/img/2cl.png2.91KB0.24KB▼ 91.79%
admin/ReduxCore/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_ffffff_1x400.png0.10KB0.10KB▼ 4.67%
admin/ReduxCore/assets/img/3cm.png2.96KB0.29KB▼ 90.35%
admin/ReduxCore/assets/img/3-col-portfolio.png1.00KB0.15KB▼ 85.27%